Page 1 of 1

Failed to connect to ESP32: Timed out waiting for packet header

Posted: Tue May 15, 2018 10:14 am
by NateOlivieri
Hi everyone,
i have configured my Mac Os late 2011 following the guide at link https://esp-idf.readthedocs.io/en/lates ... troduction, i have configured Eclipse CDT as the guide hints but when i flash my ESP-WROOM-32 I see:

Flashing binaries to serial port /dev/cu.SLAB_USBtoUART (app at offset 0x10000)...
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [flash] Error 2

This is the first time I try to flash ESP with this device... perhaps any error in configuration?
I also installed the driver CP210x VCP Driver at https://www.silabs.com/community/interf ... warea-bgvU because with the recent version of this driver I didn't see the usb port /dev/cu.SLAB_USBtoUART when I typed in terminal ls /dev/cu*.

I wait for your hint,
much thanks for your attention.

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Tue May 15, 2018 2:11 pm
by kolban
There was a post recently that might offer a clue:

https://esp32.com/viewtopic.php?f=2&t=4 ... rra#p24764

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Tue May 15, 2018 2:43 pm
by NateOlivieri
Hi Kolban,
thank you for your answer.

My problem is different to issue at your link because I have success to find a port where ESP is connected.
Do you have other hints for my question?

Thaks a lot Kolban!

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Wed May 16, 2018 3:42 pm
by kolban
What is the actual file under /dev that you are finding? If you remove the ESP32, does it "go away"? What happens if you attach a serial monitor to the file and reboot the ESP32? Does any content show up?

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Wed May 16, 2018 4:39 pm
by fly135
I have some boards that automatically go into download mode when esptool.py flashes and some that require the EN/BOOT button dance. Maybe your board requires you to go into download mode through the buttons.

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Mon Jun 25, 2018 6:49 pm
by anelquiro72
Hello, I have same problem.

I configured my ESP32 with this url http://randomnerdtutorials.com/installi ... tructions/, but Failed to connect.

These are the configurations applied:
Placa: ESP32 Dev Module"
Flash Mode: "QIO"
Flash Frecuency: "40 MHZ"
Flash size: "4MB"
Upload size: "115200"
Puerto: /dev/cu.SLAV_USBtoUART"

Execute...

esptool.py v2.3.1
El Sketch usa 163145 bytes (12%) del espacio de almacenamiento de programa. El máximo es 1310720 bytes.
Las variables Globales usan 11152 bytes (3%) de la memoria dinámica, dejando 283760 bytes para las variables locales. El máximo es 294912 bytes.
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I tried using the Boot & And buttons, and neither.
I changed the USB cable for a better one.

... but this does not work.

Please, help me!!!

Thanks

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Mon Jun 25, 2018 7:13 pm
by anelquiro72
Hello,

I have exactly the same problem.

NateOlivieri, Do you have a solution?

Thanks
NateOlivieri wrote:Hi everyone,
i have configured my Mac Os late 2011 following the guide at link https://esp-idf.readthedocs.io/en/lates ... troduction, i have configured Eclipse CDT as the guide hints but when i flash my ESP-WROOM-32 I see:

Flashing binaries to serial port /dev/cu.SLAB_USBtoUART (app at offset 0x10000)...
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [flash] Error 2

This is the first time I try to flash ESP with this device... perhaps any error in configuration?
I also installed the driver CP210x VCP Driver at https://www.silabs.com/community/interf ... warea-bgvU because with the recent version of this driver I didn't see the usb port /dev/cu.SLAB_USBtoUART when I typed in terminal ls /dev/cu*.

I wait for your hint,
much thanks for your attention.

Re: Failed to connect to ESP32: Timed out waiting for packet header

Posted: Fri Jul 26, 2019 11:35 am
by ferreira2006
I am using Ubuntu 18.04 and had the same problem:
- make flash didn't work;
- python2 /home/marcos/esp/esp-idf/components/esptool_py/esptool/espto...../hello_world/build/partitions_singleapp.bin DID NOT WORK ALSO.

For me it worked by following these steps:
https://github.com/espressif/esptool

USED ​​COMMAND: esptool.py --port / dev / ttyUSB0 write_flash 0x1000 /home/marcos/esp/hello_world/build/hello-world.bin

Summing up:
python2 DIDN'T WORK;
esptool.py WORKED.