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

    Unable to load new FW from Arduino IDE.

    Arduino
    arduino c++ esp32
    2
    4
    4.4k
    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.
    • F
      fbritop
      last edited by

      I had no trouble with previous devices from CORE2 (2 test units), I did order 20 units to proceed, but none of them work.
      I have donde even a very simple Arduino Program with no luck, also tried my original program that is working with the 2 initial units

      __
      It thorws this exception:

      ERROR A stack overflow in task IDLE1 has been detected.
      abort() was called at PC 0x40088bfc on core 1

      //#include <M5Core2.h>
      //#include <M5Unified.h>
      void setup() {
        Serial.begin(115200);
        //M5.begin();
        Serial.println("f(setup)");
      
      }
      void loop() {
        //M5.update();
      }
      

      ELF file SHA256: 0000000000000000
      Backtrace: 0x40088974:0x3ffba560 0x40088be5:0x3ffba580 0x40088bfc:0x3ffba5a0 0x4008a4de:0x3ffba5c0 0x4008be74:0x3ffba5e0 0x4008be2a:0xa5a5a5a5
      Rebooting...

      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT
        teastain @fbritop
        last edited by

        @fbritop I would put a delay(100); in the Loop:
        You can get a race condition where the scan time is shorter than the esptool reaction and it could be "too busy" to stop and upload.
        If this is the case it will take some finagling to reset the upload mode.
        Usually just pressing the reset key on the top side, at different times until you get in time.

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        F 2 Replies Last reply Reply Quote 0
        • F
          fbritop @teastain
          last edited by

          @teastain This is not the problem. I have tried with the original code that is working on other 2 units and does not work also.

          1 Reply Last reply Reply Quote 0
          • F
            fbritop @teastain
            last edited by

            @teastain This is en backtrace decoded:

            PC: 0x04d25826
            EXCVADDR: 0x04d25824

            Decoding stack results
            0x40090d71: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c line 3382
            0x4008f5b6: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

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