I try to follow the tutorial, but I get stuck right at the beginning.
I can only start the upload with a pressed reset-button, which I release, when the connection tries to build up. The upload seems fine, but then I seem to have again a problem with the flash memory.
The error message is:
esptool.py v2.6-beta1 Serial port COM8 Connecting........_ Chip is ESP32D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: a4:cf:12:99:bb:78 Uploading stub... Running stub... Stub running... Changing baud rate to 921600 Changed. Configuring flash size... Warning: Could not auto-detect Flash size (FlashID=0x0, SizeID=0x0), defaulting to 4MB Compressed 8192 bytes to 47... Writing at 0x0000e000... (100 %) Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 2184.5 kbit/s)... A fatal error occurred: Timed out waiting for packet header A fatal error occurred: Timed out waiting for packet header
Maybe someone has an idea. Every guess is appreicated. Have a nice evening
Hello Detlev, (this is from our ESP32-CAM Troubleshooting guide).
That means that when you try to upload a new sketch to your ESP32-CAM, the Arduino IDE fails to connect to your board, and you get the following error message:
"Failed to connect to ESP32: Timed out waiting for packet header"
I can only reproduce that error on my end when I fail to do these things:
- Wrong wiring (TX and RX swapped)
- ESP not in flashing mode (GPIO 0 not connected to GND, and you didn’t restart the board before trying to upload a new sketch)
- No COM Port selected
- Not enough power (your ESP32-CAM crashes)
I’ve tried the ESP32-CAM sketches with multiple boards and it always worked for me, but that happens if you don’t follow the exact instructions or don’t have enough power reaching your board.
ESP32-CAM Video Streaming and Face Recognition with Arduino IDE