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

NateOlivieri
Posts: 3
Joined: Tue May 15, 2018 9:54 am

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

Postby NateOlivieri » Tue May 15, 2018 10:14 am

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.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Tue May 15, 2018 2:11 pm

There was a post recently that might offer a clue:

https://esp32.com/viewtopic.php?f=2&t=4 ... rra#p24764
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

NateOlivieri
Posts: 3
Joined: Tue May 15, 2018 9:54 am

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

Postby NateOlivieri » Tue May 15, 2018 2:43 pm

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!

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

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

Postby kolban » Wed May 16, 2018 3:42 pm

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?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

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

Postby fly135 » Wed May 16, 2018 4:39 pm

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.

anelquiro72
Posts: 2
Joined: Mon Jun 25, 2018 6:23 pm

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

Postby anelquiro72 » Mon Jun 25, 2018 6:49 pm

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

anelquiro72
Posts: 2
Joined: Mon Jun 25, 2018 6:23 pm

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

Postby anelquiro72 » Mon Jun 25, 2018 7:13 pm

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.

ferreira2006
Posts: 1
Joined: Fri Jul 26, 2019 11:17 am

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

Postby ferreira2006 » Fri Jul 26, 2019 11:35 am

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.

Who is online

Users browsing this forum: Bing [Bot], Timmeke_ and 111 guests