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: 1447
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:

viewtopic.php?f=2&t=440&p=24764&hilit=high+sierra#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: 1447
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: 138
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.

Who is online

Users browsing this forum: david@mandy and 2 guests