-
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
esptool won't flash after failed upload (ESPTOOL-718) #902
Comments
Full trace of one of the
|
Powering off the board for 10 min at a time did not help. |
Hello @i-e-b, have your issues been solved completely, or do you still experience the glitches? This behavior seems very weird, I haven't seen a case like this before. The chip sometimes reports as being in Secure Download Mode and sometimes not. Have you activated any of the security features like secure boot or flash encryption?? Have you burnt any eFuses? The ESP shouldn't be possible to brick as a result of a failed flash. This, and the fact that you had to leave it unpowered for 30 hours to fix the issue makes me believe this is a hardware-related problem. |
It seems stable at the moment. No, I haven't set any eFuses. I will report back if it happens again. Will see if there are any RF noise sources in that case too. Happy for this issue to be close for now. |
Thank you! Please do report back if issues continue. I am closing this ticket. |
Operating System
Xubuntu 22.04.2 LTS
Esptool Version
v5.2-dev-1890-g28167ea5a3
Python Version
Python 3.10.6
Chip Description
ESP32-WROVER-E
Device Description
Lilygo T-SIM A7670E development board
Hardware Configuration
Serial RX/TX connected only via USB/RS232 bridge.
No on-board USB used.
Power is from a bench-top power supply.
How is Esptool Run
via Terminal (bash) and CLion
Full Esptool Command Line that Was Run
esptool.py -c esp32 -p /dev/ttyUSB0 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 build/bootloader/bootloader.bin 0x10000 build/LilygoEspIdf.bin 0x8000 build/partition_table/partition-table.bin
Esptool Output
Variants of
A fatal error occurred: Invalid head of packet (0x01): Possible serial noise or corruption.
and
esptool.util.UnsupportedCommandError: Invalid (unsupported) command 0x5
More Information
The setup has been working for a few days.
I had one upload fail (possibly causing the issue, possibly triggered by underlying issue)
Now, if I connect via serial monitor, I get a very clean signal.
The module repeats this on a normal boot:
If I boot with
GPIO0
, I getAll serial very clean.
Running an upload with trace:
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: