Page 1 of 1

A fatal error occurred: Failed to connect to Espressif device when download app

Posted: Fri Jan 06, 2017 8:03 am
by iamblwb
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

Re: A fatal error occurred: Failed to connect to Espressif device when download app

Posted: Fri Jan 06, 2017 8:44 am
by ESP_Sprite
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.