A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Posted: Mon Aug 02, 2021 8:46 am
Hello,
We have a ESP32 WRover-B soldered on our PCB, and while trying to program it via Arduino IDE, it throws the error message " Failed to connect to ESP32: Timed out waiting for packet header".
So far, I have tried the following steps:
- Checked the power supply on EPS32 Vcc and GND. There is solid 3.3 Volts.
- Checked the CP2102N-A02-GQFN28 USB -UART Bridge, (when shorted at the Rx and Tx ) on the PCB, I can see that on my PC Terminal I get the typed characters back Echoed. Also as soon as I attach the USB my PC find the device and shows it in devmgmt.msc window.
- Check if the Tx - Rx of the CP2102N-A02-GQFN28 USB -UART Bridge are physically connected to ESP32 WRover-B Tx and Rx, the are.
- Check the Scope traces of the EN aka Reset GPIO and Boot Option aka GPIO-0. Please see the image below.
The schematics is attached as well, with the PCB layout data.
Please note! the swapped D+/D- on the USB entrance and on the ESP32 has been reworked and corrected. Also the (R52) track connecting to V3.3 ESP has been reworked and removed.
Currently I have added a 10mF Cap on Boot Option Switch to GND, and another 10mF cap on EN to GND.
The scope traces are after these changes.
Any information upon solving this hardware failure is highly appreciated.
David
We have a ESP32 WRover-B soldered on our PCB, and while trying to program it via Arduino IDE, it throws the error message " Failed to connect to ESP32: Timed out waiting for packet header".
So far, I have tried the following steps:
- Checked the power supply on EPS32 Vcc and GND. There is solid 3.3 Volts.
- Checked the CP2102N-A02-GQFN28 USB -UART Bridge, (when shorted at the Rx and Tx ) on the PCB, I can see that on my PC Terminal I get the typed characters back Echoed. Also as soon as I attach the USB my PC find the device and shows it in devmgmt.msc window.
- Check if the Tx - Rx of the CP2102N-A02-GQFN28 USB -UART Bridge are physically connected to ESP32 WRover-B Tx and Rx, the are.
- Check the Scope traces of the EN aka Reset GPIO and Boot Option aka GPIO-0. Please see the image below.
The schematics is attached as well, with the PCB layout data.
Please note! the swapped D+/D- on the USB entrance and on the ESP32 has been reworked and corrected. Also the (R52) track connecting to V3.3 ESP has been reworked and removed.
Currently I have added a 10mF Cap on Boot Option Switch to GND, and another 10mF cap on EN to GND.
The scope traces are after these changes.
Any information upon solving this hardware failure is highly appreciated.
David