🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Confusing M5Core2 Initialization

    Core 2
    2
    2
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rmetzner49
      last edited by

      Here is my INIT code in Arduino:
      M5.begin();
      M5.Lcd.print("IOT DEVICE MONITOR");
      WiFi.begin(ssid, pass); //connect to WiFi
      delay(2000);
      Serial.begin(115200);
      Serial.println("IOT DEVICE MONITOR");

      The response is:
      M5Core2 initializing...axp: vbus limit off
      axp: gpio1 init
      axp: gpio2 init
      axp: rtc battery charging enabled
      axp: esp32 power voltage was set to 3.35v
      axp: lcd backlight voltage was set to 2.80v
      axp: lcd logic and sdcard voltage preset to 3.3v
      axp: vibrator voltage preset to 2v
      touch: FT6336 ready (fw id 0x10 rel 1, lib 0x300E)
      OK

      The first M5.Lcd.print is displayed, then we go no further, stopping at the "OK" message after FT6336.
      About one in 10x it works correctly. What is missing here?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @rmetzner49

        try without the extra Serial.begin(115200). By default Serial gets already initialized when the M5.begin() function is called. I've seen things go wrong before when Serial is initialized twice.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post