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

bbernhard
Posts: 5
Joined: Sun Jan 31, 2021 7:42 am

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

Postby bbernhard » Tue Dec 19, 2023 9:57 pm

Hello everybody,

I've tried to create a small breakout board for the ESP32-WROVER-E with (what I believe) only the most minimalistic logics. Unfortunately however, I do get the following error when trying to program the microcontroller: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header"

I connected the ESP32 with my 3.3V USB-TTL converter in the following way:

Code: Select all

ESP32                USB TTL Converter
GND      ---------            GND
3.3V      ---------           3.3V
TX         ---------          RXD0
RX        ---------           TXD0
If I do not enter the programming mode and just open the serial monitor (baudrate: 115200) I see the following messages continously:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)␍␊
configsip: 0, SPIWP:0xee␍␊
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00␍␊
mode:DIO, clock div:2␍␊
load:0x3fffeba4,len:4␍␊
load:0x4009f000,len:3248␍␊
entry 0x4009f574␍␊
<0xc0>OHAI<0xc0>
In order to program the microcontroller, I do the following to enter the programing mode:
* press and hold the Program Button (SW2)
* press and release the Reset Button (SW1)
* release the Program Button (SW2)

But unfortunately when I try to program the ESP32, I do get the following error:

Code: Select all

Sketch uses 886926 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 61088 bytes (18%) of dynamic memory, leaving 266592 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Failed uploading: uploading error: exit status 2
The schematics can be found here:
output.pdf
(40.55 KiB) Downloaded 107 times
Does anyone know what I am doing wrong here?

Any help is greatly appreciated!

Thanks a lot!

Who is online

Users browsing this forum: No registered users and 65 guests