Closed kymatomo closed 1 year ago
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: https://github.com/espressif/esptool/issues/280#issuecomment-907622126
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 mem_end_rom_timeout = 10
, but it still seems to timeout rapidly.
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) Failed chip erase: uploading error: exit status 2
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) "
@lawrencebensaid @Stan-T889:
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
This isn't a new problem and nothing to do with esptool
- https://meshtastic.discourse.group/t/failed-to-write-to-target-ram-result-was-01070000/3874/25
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
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