Unable to upload code to ESP32-CAM

Hi community

I am using a ESP32-CAM to blink with the builtin LED and an Arduino Nano as a USB-to-Serial connector. The wiring is as on the image:

In the Arduino IDE I used the File > Example > 0.1 Basics > Blink and changed the LED_BUILTIN to 12.

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(12, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(12, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(12, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

Furthermore, I have ensured that the following settings are as a guide I found on YouTube:

During the UPLOAD process there is an error:

esptool.py v4.8.1
Serial port COM3
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

As per the link in the error message I have ensured that:

  • The correct serial port is selected
  • I don't get any error messages because of permissions
  • ESP32-CAM is receiving power

Furtermore, I have double checked the wiring and replaced all wires with new ones.

Also, the esp32 is installed in the BOARDS MANAGER:

Your ESP32-CAM is not an Arduino Nano ESP32, hence your topic has been moved to a more suitable location on the forum. You should post questions specific to the ESP32-CAM in 3rd Party Boards; because this is an upload problem, it was moved to Uploading.


I'm not familiar with your board so can't help. Just a warning that an Arduino Nano is a 5V device and 5V signals (TX) from the Nano can damage the 3.3V ESP32-CAM.

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