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

    Nothing showing on M5Core2 when connected to USB power and unable to upload

    Core 2
    4
    13
    8.6k
    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.
    • ajb2k3A
      ajb2k3
      last edited by

      No, its very hard to brick an esp32.
      In M5Burner, have you tried just erasing the firmware before trying to write?
      If you uploaded an Arduino sketch to the core2 then you will need to erase the sketch before doing anything.
      Also try accessing and erasing the core2 after cold booting the computer.

      UIFlow, so easy an adult can learn it!
      If I don't know it, be patient!
      I've ether not learned it or am too drunk to remember it!
      Author of the WIP UIFlow Handbook!
      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

      1 Reply Last reply Reply Quote 1
      • T
        theMusicMan
        last edited by

        I guess I have posted twice more or less about the same thing @ajb2k3 sorry. I installed the ArduinoIDE on to my MacBook Pro, followed the M5Stack instructions again to install the boards, library and drivers, and I get the same thing on this machine as I do on my iMac. here's the error...

        I genuinely think my M5Core2 is bricked. I tried to do some research and it appears there's no successful way to get the core2 into BOOT mode. Sigh...

        Erase Flash
        esptool.py v3.3.2-dev
        Serial port /dev/tty.wchusbserial54FC01826501
        Connecting...
        .
        .
        .

        A fatal error occurred: Failed to connect to Espressif device: No serial data received.
        For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html

        1 Reply Last reply Reply Quote 1
        • ajb2k3A
          ajb2k3
          last edited by

          Do you know what a cold bout means?

          The issue you are seeing is caused by the core writing the wrong data to the core 2 usb chip and so the computer is crashing as it’s confused. I have experienced this my self and while it is annoying, it is recoverable from.
          One method is to press the reset button on the core 2 after M5 Burner starts to access the series port. It takes practice and timing but you need to interrupt the boot process to get M5Burner to trigger the erase before the buggy code starts.
          The next method is to remove the base and use an external UART2USB connected to the internal MBus connector or UART pins and bypass the chip to again erase the bad code from the esp32. Again all is not lost and it is recoverable.

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • T
            theMusicMan
            last edited by

            So cold boot the core2 you mean? Your previous post said cold boot the computer which I thought you meant my iMac!! Sorry.

            OK, I will try this approach. So I understand, launch m5burner, select factory firmware, but select erase before trying to burn factory image. When selecting erase, press the reset button on the core2 at a time when the M5burner has just accessed the core2. Is that correct?

            Also, the code that was running on the M5Core2 previously was running fine without issue so not sure where any buggy code came from.

            Thanks for the suggestions though @ajb2k3 - I will try this shortly.

            1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3
              last edited by

              Err yeh cold boot the mac it is very susceptible to the unavailable resource issue. And yes press the reset button on the core2 the time period is a fraction of a second and took me over 20 tries to do it.

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              W 1 Reply Last reply Reply Quote 0
              • W
                wsanders @ajb2k3
                last edited by

                I've "semi-bricked" a Core2 a few times, mostly by uploading code with the wrong board type selected. But also by subtle memory errors uploaded programs. Reinstalling the "BIOS" with the burner has always brought it back to life.

                ajb2k3A T 2 Replies Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3 @wsanders
                  last edited by

                  @wsanders unfortunately the music man has softbricked his core2 which blocks M5Burner from being to accessing the usb device but also crashes the USB bud on macs

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 1
                  • T
                    theMusicMan @wsanders
                    last edited by

                    @wsanders Can I ask what you mean by reinstalling the "BIOS" please? Do you mean the factory image? If so, M5Burner isn't able to connect to the M5Core2, hence my thinking that this board is actually 'hard' bricked i.e. irrecoverable.

                    Again, if this is so, it is a pretty nasty design flaw by M5Stack in M5Core2 users not being able to place their ESP32S3 board into BOOT mode which would allow a recovery/restore to take place. As far as I can tell, BOOT mode on the M5Core2 is simply not possible.

                    ajb2k3A 1 Reply Last reply Reply Quote 0
                    • ajb2k3A
                      ajb2k3 @theMusicMan
                      last edited by

                      @themusicman Its a lot harder to soft brick the S3 cores unlike the Core/Core because the S3 have built in USB controllers where as the the Core/Core2 need a dedicated USB adapter to communicate.

                      UIFlow, so easy an adult can learn it!
                      If I don't know it, be patient!
                      I've ether not learned it or am too drunk to remember it!
                      Author of the WIP UIFlow Handbook!
                      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                      1 Reply Last reply Reply Quote 0
                      • T
                        theMusicMan
                        last edited by theMusicMan

                        Update: I have returned the M5Core2 device purchased last week to the dealer I bought it from, something they had absolutely no issue with doing for me. They are going to issue a replacement. Now I need to try to identify what caused the M5Core2 to go into this rather ridiculous fail mode. I simply left it running overnight with code that was working the previous evening, and when I came to use it the following afternoon it was unresponsive.

                        Let's hope the same thing doesn't happen again, which if it does, will sadly prematurely end my relationship with M5Stack devices :)

                        ajb2k3A 1 Reply Last reply Reply Quote 0
                        • ajb2k3A
                          ajb2k3 @theMusicMan
                          last edited by

                          @themusicman I had this happen to an M5Station but nothing else.

                          UIFlow, so easy an adult can learn it!
                          If I don't know it, be patient!
                          I've ether not learned it or am too drunk to remember it!
                          Author of the WIP UIFlow Handbook!
                          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                          1 Reply Last reply Reply Quote 0
                          • N
                            nikhilgv9
                            last edited by

                            I faced the same problem with M5 Stack Core2.
                            It was not connecting via USB no light was turning on when connected to USB.

                            Here is what I did

                            1. Disconnect the device from USB port of your computer
                            2. Now you have turn off the device. It is hard since your don't know whether it is on currently or not and connecting USB will turn in on automatically. So connect it to USB once. Then disconnect it again, now you can know device is on. Not press the power button for 10 seconds it will turn off the device.
                            3. Remove the pin cover from the bottom of the ESP32. Using a wire connect G0 to any GND ping
                            4. Now plugin the device to the computer
                              You should see the device now.

                            Use this opportunity to flash a good program into the device. Now remove the wire between G0 and GND and restart your device.

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