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

    new m5stack: Failed to write to target RAM (result was 01070000)

    Bug Report
    13
    22
    55.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.
    • B
      burton
      last edited by

      hello!
      just got a new (first) m5stack, and am stuck at:

      • Serial port /dev/cu.SLAB_USBtoUART
        Connecting........__
        Chip is ESP32D0WDQ6 (revision 1)
        Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
        MAC: 24:6f:28:8f:d1:54
        Uploading stub...
        A fatal error occurred: Failed to write to target RAM (result was 01070000)

      this happens with M5burner as well as Arduino configured with the ESP32 board specs. MacOS10.14.6 with the USB driver. tried all baud rates with the same result. (NB: had to un-quarantine M5burner with xattr, even though copied in /Applications).

      any thoughts?

      1 Reply Last reply Reply Quote 0
      • E
        erich
        last edited by

        Hello,

        I'm also new with M5Stack products and have got the very same issue with a brand new Core 2.
        I am using VSCode + PlatformIO
        I am currently trying to test some basic code but end up with the same error when uploading my code.
        Have you solve the issue? Do you know what was the cause?
        Thanks
        Eric

        1 Reply Last reply Reply Quote 0
        • ZontexZ
          Zontex
          last edited by Zontex

          Hi @erich , could you please send me an email so I could assist you regarding this issue: roni@m5stack.com so I could assist you better?

          E 1 Reply Last reply Reply Quote 0
          • E
            erich @Zontex
            last edited by

            @zontex Thanks a lot! Email sent with the full explanation of the issue

            1 Reply Last reply Reply Quote 0
            • D
              darul75
              last edited by darul75

              Hello @Zontex could you advise me also as I got a similar problem

              Start Burn

              --chip esp32 --port /dev/tty.usbmodem51850037101 --baud 1500000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x7ff000 /Applications/M5Burner.app/Contents/Resources/packages/fw/other/wifi.bin 0x1000 /Applications/M5Burner.app/Contents/Resources/packages/fw/core/UIFlow_Core2-v1.8.5-core2.bin

              esptool.py v2.5.0
              Serial port /dev/tty.usbmodem51850037101
              Connecting...
              .

              Chip is ESP32D0WDQ6 (revision 1)
              Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse
              MAC: 08......HIDINGIT
              Uploading stub...

              A fatal error occurred: Failed to write to target RAM (result was 01070000)

              Burn Failed

              I guess it is the driver not loading well as I can only see this tty of type modem but I have found no easy way to make it working, I am using the Apple Multi Adaptor (HDMI/USB) on USB C.

              M 1 Reply Last reply Reply Quote 0
              • D
                darul75
                last edited by darul75

                I have installed latest driver https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip and can see the corresponding extension in /Library/Extensions with

                drwxr-xr-x@ 3 root wheel 96 Oct 15 10:46 SiLabsUSBDriver.kext

                but then when running M5Burner it only show a tty device of type Bluetooth or usb modem

                ls /dev/tty.*

                /dev/tty.Bluetooth-Incoming-Port
                /dev/tty.usbmodem51850037101

                I am running macOS Catalina

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

                  @darul75 said in new m5stack: Failed to write to target RAM (result was 01070000):

                  I have installed latest driver https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip and can see the corresponding extension in /Library/Extensions with

                  drwxr-xr-x@ 3 root wheel 96 Oct 15 10:46 SiLabsUSBDriver.kext

                  but then when running M5Burner it only show a tty device of type Bluetooth or usb modem

                  ls /dev/tty.*

                  /dev/tty.Bluetooth-Incoming-Port
                  /dev/tty.usbmodem51850037101

                  I am running macOS Catalina

                  /dev/tty.usbmodem51850037101 is the correct device, I'm not sure what's going on in OSX but this is how it appears for me and the device that works for me.

                  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!

                  M 1 Reply Last reply Reply Quote 0
                  • D
                    darul75
                    last edited by

                    Great thanks, I will try again later, in the meantime I switched to a Windows machine to make it working.

                    1 Reply Last reply Reply Quote 0
                    • D
                      didier9
                      last edited by

                      I had weird problems like this with an M5Stamp-PICO until I put more capacitance across the bus (5V and 3.3V). I used a couple of tantalum capacitors I had on hand, not sure the value, probably 33uF. I was powering the device through the USB serial adapter and apparently it was power limited.
                      I have had no problem whatsoever since then.

                      www.ko4bb.com

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mackone @ajb2k3
                        last edited by

                        @ajb2k3
                        Same thing is happening to me:

                        Start Burn
                        "
                        --chip esp32 --port /dev/tty.usbmodem53190095701 --baud 1500000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 /Applications/M5Burner.app/Contents/Resources/packages/fw/core/Core2_Tools-v1.0.0.bin

                        esptool.py v2.5.0
                        Serial port /dev/tty.usbmodem53190095701
                        Connecting...

                        Chip is ESP32D0WDQ6 (revision 1)
                        Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse
                        MAC: 08:3a:f2:66:b7:70
                        Uploading stub...

                        A fatal error occurred: Failed to write to target RAM (result was 01070000)

                        Burn Failed
                        "

                        Fighting for over 10 hours.. I'm dying here..

                        L 1 Reply Last reply Reply Quote 0
                        • M
                          Mackone @darul75
                          last edited by

                          @darul75

                          Same here - Have You found any solution?

                          1 Reply Last reply Reply Quote 0
                          • E
                            erich
                            last edited by

                            This was a known issue with Big Sur (something related to the python and / or serial port implementation in Big Sur.
                            I did contact M5Stack support but no solution has ever been found.
                            I gave up and reverted back to Catalina and it worked fine again.
                            Now I just installed the latest Monterey but haven't tested the Core2 yet.
                            In the meantime I was also using a windows computer....

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              Mackone @erich
                              last edited by

                              @erich I'm on Mojave 10.14 and problem still exists :/

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

                                I’m actually getting it with Catalina

                                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
                                • S
                                  slugs
                                  last edited by

                                  Has anyone managed to get the core 2 to work with an M1 mac? I think that you do not need the driver for the m1? With a m5stick C it works fine, but not with the core 2

                                  1 Reply Last reply Reply Quote 0
                                  • ExieE
                                    Exie
                                    last edited by Exie

                                    I have the same issue when I use the M5Stack ESP32 Downloader.
                                    However when I use a simple M5Stack Atom Matrix, its works fine.

                                    I am on OSX Big Sir.

                                    I feel like the issue is related to the CH9102 chip on the ESP32 Downloader where the Atom has the CP2104 I think.
                                    This theory is supported by this article here:
                                    https://blog.squix.org/2021/08/ch9102-driver-issues-failed-to-write-to-target-ram.html

                                    Confirmed, installing the driver from this thread here worked for me
                                    https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/issues/139

                                    E 1 Reply Last reply Reply Quote 0
                                    • E
                                      erich @Exie
                                      last edited by

                                      @exie said in new m5stack: Failed to write to target RAM (result was 01070000):

                                      I have the same issue when I use the M5Stack ESP32 Downloader.
                                      However when I use a simple M5Stack Atom Matrix, its works fine.

                                      I am on OSX Big Sir.

                                      I feel like the issue is related to the CH9102 chip on the ESP32 Downloader where the Atom has the CP2104 I think.
                                      This theory is supported by this article here:
                                      https://blog.squix.org/2021/08/ch9102-driver-issues-failed-to-write-to-target-ram.html

                                      Confirmed, installing the driver from this thread here worked for me
                                      https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/issues/139

                                      I guess you're right as I noticed on banggood/ aliexpress some products using this CH9102 chip are tagged as not Mac compatible.

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        labixiaoxin8888 @Mackone
                                        last edited by

                                        @mackone try connecting the downloader's 3V3 to Stamp Pico's 5V

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          parahooner
                                          last edited by

                                          I found a solution that works on Montery :-)

                                          Make sure you follow the PDF instructions, this works M1 Mac M5 Epaper

                                          http://www.wch.cn/downloads/CH34XSER_MAC_ZIP.html

                                          B 1 Reply Last reply Reply Quote 2
                                          • B
                                            Bludotz @parahooner
                                            last edited by

                                            @parahooner Very many thanks for posting this, it completely resolved the problem.

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