• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Try to connect the ESP32 cam

Q&A Forum › Category: ESP32 › Try to connect the ESP32 cam
0 Vote Up Vote Down
Detlev Barthel asked 5 years ago

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

Question Tags: Camera connection
1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.