-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out) (ESPTOOL-725) #908
Comments
Hello @Kymasola, this issue is usually caused by delays in the UART communication, which can be a result of faulty drivers or the USB-to-UART bridge. See this similar issue: #280 (comment) A possibility is to use a configuration file and increase the timeouts used by esptool. Please try to do this and let me know if that helped. Thanks! |
I'm getting this error as well with 4.7.0. I tried setting |
Any update on this? I have the same issue. Feels like I've tried everything.. |
Uploading stub... A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out) The same syndrom in my lab. After updating the CP2104 driver, the result is the same. Doubt that the problem is chip related, due to " ... chip is ESP32-D0WD-V3 (revision v3.1) " |
If you're on macOS this is most likely issue with WCH CH3xx UART chipset. Either use a different one (e.g. legitimate FTDI, RPi or similar), or if you trust it you can install https://github.com/WCHSoftGroup/ch34xser_macos |
Operating System
Windows 10
Esptool Version
v4.5.1
Python Version
Python 3.11.3
Chip Description
ESP-WROOM-32
Device Description
Dev Module on a breadboard.
Hardware Configuration
No response
How is Esptool Run
Arduino IDE, esptool.py, Arduino Cloud
Full Esptool Command Line that Was Run
esptool.py --port COM3 read_flash 0x00000 0x100000 image1M.bin
Esptool Output
esptool.py v4.6.2 Serial port COM3 Connecting.... Detecting chip type... Unsupported detection protocol, switching and trying again... Connecting....... Detecting chip type... ESP32 Chip is ESP32-D0WD-V3 (revision v3.0) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 54:43:b2:c5:0d:64 Uploading stub... A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out)
py -m esptool --port COM3 write_flash_status --non-volatile 0
A fatal error occurred: Unable to verify flash chip connection (Packet content transfer stopped (received 138 bytes)).
More Information
I first tried it with Arduino IoT Cloud Sketch and I get this
I open the Full Editor and get the same output. So I tried using an example code in Arduino IDE which is "WiFiScan"
I've tried changing baud rates and doing --no-stub but it doesnt work.
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: