I do a terrible thing that I used a non-stop while loop to print logs without any delay in app_main (before app task created).
I try "make flash" or "esptool.py to erase flash" to reflash the app, but it always shows such error: "A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header"
It seems the port is occupied by logs so that I can't flash app anymore.
Is there any way to enter "download mode" or any way to recover it?
Thanks
A fatal error occurred: Failed to connect to Espressif device when download app
-
- Posts: 9769
- Joined: Thu Nov 26, 2015 4:08 am
Re: A fatal error occurred: Failed to connect to Espressif device when download app
To get into download mode, GPIO0 should be pulled down and EN (=reset) should be pulsed low to reset the chip. In theory, if you have any devboard worth its salt, esptool.py should do that using the hardware handshake lines that are connected to gpio0 and EN. You can do it manually as well if you think this doesn't work.
Who is online
Users browsing this forum: Bing [Bot] and 62 guests