-
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
ESP32S3 fails to flash again after last successful flash (ESPTOOL-658) #868
Comments
Hello @LuisCRSousa, One thing to try is to "erase" the flash by writing a large binary containing only |
USB-Serial/JTAG peripheral
It worked! Actually, I didn't flash 'FF', but used an Arduino example output and flashed the binary manually using the --no-stub option. Thanks a lot. But why did it worked this way? |
I was able to replicate the issue again. Steps:
2 - Try to program again. It gets stuck on 'Stub running'. The last flash still runs on the board. Looks like when Serial.print send a lot of data to the console, it breaks the esptool? |
Yes, there may be some data left in the buffer that messes up esptool communication. |
Hi @LuisCRSousa,
Thank you! |
Forgot to mention that I also changed the ASCIITable arduino example baud rate from 9600 to 115200. I don't have the board with me atm so I can't test with the original speed. My ASCIITable arduino example:
|
@LuisCRSousa thank you, with your additional instructions, I have reproduced the issue! |
Operating System
windows 11
Esptool Version
All releases since 3.2
Python Version
Python 3.10.4
Chip Description
ESP32-S3
Device Description
WT32-S3-WROVER on a SC01 Plus Dev kit
Hardware Configuration
SC01 Plus Dev kit
How is Esptool Run
Windows terminal and also with Arduino IDE
Full Esptool Command Line that Was Run
python esptool.py --trace --chip auto erase_flash
Esptool Output
More Information
I manage to flash the board with Arduino IDE 2.04 (esptool.py v4.2.1) a few times.
The last successful flash was the ASCIITable example with baud rate changed to 115200 and printing continuously to infinity.
The board still runs it ok.
After this I can't get to flash anything or even erase the flash using any version of esptool.
Checking the log, it seems to stop when stub starts running. If I try to erase the flash using '--no-stub' the esptool gives the following message: 'A fatal error occurred: ESP32-S3 ROM does not support function erase_flash'
I also increased the loader.py timeouts (MEM_END_ROM_TIMEOUT inclusive from 0.2 up to 20) with no changes.
I'm out of ideas atm
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: