Problem with uploading the sketch to the ESP32-CAM using Arduino Uno

Hi dears, I'm trying to upload builtin example "CameraWebServer.ino" via Arduino Uno , but during upload after pressing RST button on ESP32 board I receive following error:

Compilation complete.
esptool.py v3.0-dev
Serial port COM3
Connecting.......
Chip is ESP32-D0WDQ6-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:c6:f7:1f:f7:00
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...

A fatal error occurred: Timed out waiting for packet header
Upload error: Failed uploading: uploading error: exit status 2

Where did I go wrong?

Welcome to the forum

How exactly are the two systems connected and how have you dealt with the fact that the Uno is a 5V device whilst the ESP32 is a 3.3V device ?

Have you grounded the ESP32 GPIO pin when trying to upload the code ?

Hi, thanks for your reply
1- My connection is as below:

  • Arduino GND & 5Volt connected to ESP32-CAM POW pins (GND & 5V)
  • Arduino RESET pin connected to ESP32-CAM GND
  • a jumper connected to GND & GPIO 0 of ESP32-CAM
  • Arduino RX & TX pins connected respectively to U0RXD & U0TXD of ESP32-CAM
    as described in link: Using ESP32 cam with arduino

2- as shown in ESP32-CAM pinout, POW pins of board has 5Volt & GND power supply

3- Yes, I have grounded GPIO 0 pin during upload to force ESP32 board to go to FLASH mode during upload process.

4- as described in link below, When I start to see "Connecting....." in the debugging window , I pressed the ESP32-CAM on-board RST button.
ESP32-CAM Video Streaming and Face Recognition with Arduino IDE

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.