Page 1 of 1

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

Posted: Tue Sep 04, 2018 7:18 am
by hemant.chaudhari
Hello,

We have made an development board using wroom32 module.I am trying to flash a code into it using usb cable but getting following error

Flashing binaries to serial port /dev/ttyUSB0 (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

Is there any need to flash bootloader first and then flash the code?

what should I do in order to get this to work...

Thanks

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

Posted: Tue Sep 04, 2018 8:05 am
by ESP_Angus
Hi hemant,

No preparation is required apart from the correct strapping pins to get the ESP32 into UART bootloader mode.

Usually this kind of error means the ESP32 is not going into bootloader mode correctly.

For more information, consulting the Strapping Pins section in the ESP32 datasheet and these pages from the esptool docs:
https://github.com/espressif/esptool/wi ... -Selection
https://github.com/espressif/esptool/#troubleshooting

Running esptool.py with the "--trace" option may also give some clues as to what is happening when it tries to connect.