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

iamblwb
Posts: 13
Joined: Wed Dec 28, 2016 3:26 pm

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

Postby iamblwb » Fri Jan 06, 2017 8:03 am

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

ESP_Sprite
Posts: 9833
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Jan 06, 2017 8:44 am

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: No registered users and 120 guests