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

hemant.chaudhari
Posts: 16
Joined: Wed Jun 13, 2018 11:48 am

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

Postby hemant.chaudhari » Tue Sep 04, 2018 7:18 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Tue Sep 04, 2018 8:05 am

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.

Who is online

Users browsing this forum: No registered users and 150 guests