A fatal error occurred: Failed to connect to ESP32: No serial data received

I'm relatively new to arduino. I am trying to upload my sketch to a ESP32-CAM with a CH340C chip thing on the uploading board. However it returns this error in Arduino's console:

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool latest documentation
Failed uploading: uploading error: exit status 2

I have checked that my USB cable is capable of transferring data. I think that this problem may be due to drivers but apparently Windows 11 already has a driver installed for the CH340C. I went to this link to get try download driver (https://www.wch-ic.com/downloads/CH341SER_EXE.html) and when i clicked uninstall current one it said I don't have a current one. But then when I try to install it it says "driver already successfully pre installed in advance" and proceeds to not download the driver. But when I go back to Arduino it does not show a connection or port with the ESP32-CAM and still has only one COM1. For further context I am using esp32 board made by espressif, and the board I selected was ESP32-CAM Dev Module. Pls Help

This is a summary of waht I have done:

Issue: ESP32-CAM Not Recognized by Windows (Only COM1 Showing)

Problem:

  • My ESP32-CAM MB is not detected in Windows 11.
  • Only COM1 appears in Arduino IDE, even after installing CH340C drivers.
  • Device Manager does not show "USB2.0-Serial" or any new COM port when plugging in ESP32-CAM.
  • When trying to upload code, I get:

"Failed to connect to ESP32: No serial data received."

  • CH340C driver installation says "successfully pre-installed in advance," but still no detection.
  • Pressing IO0 (IOO) button while plugging in does not help.
  • Tried different USB cables and ports, but same issue.

What I’ve Tried:

  1. Checked Device Manager → No new device appears when plugging in.
  2. Reinstalled CH340C driver manually from WCH official site.
  3. Tried different USB cables (confirmed data cables).
  4. Tried different USB ports (including USB 2.0).
  5. Held IO0 while plugging in → No change.
  6. Checked on another PC → Same issue.

Questions:

  • Could the ESP32-CAM MB be defective?
  • Is there a way to force detection or debug this further?
  • Any way to check if the CH340C chip is dead?

Any help would be appreciated!

A post was split to a new topic: Sending data from ESP32 to local flask server fails: "send payload failed (-3)"

Hi @ethan202107. You did an excellent job of troubleshooting, and of communicating about your findings!

Since you have already eliminated the common causes of the "no port" symptom, this would be my guess.

No way to force detection. Device Manager lists all the devices that are recognized at the basic operating system level, so if it isn't listed in Device Manager then that is a show stopper.

Try this experiment:

  1. Disconnect the USB cable from the ESP32-CAM.
  2. Disconnect the camera board from the "MB" board.
  3. Connect the "MB" board by itself to your computer with a USB cable.
  4. Check to see if a new device appeared in Windows Device Manager.

Of course you wouldn't be able to upload sketches to the ESP32-CAM when only the "MB" board by itself is connected to your computer. However, a functional "MB" board alone will produce a device in Device Manager.

The purpose of this experiment is to determine whether the problem is related to the camera board hardware. It is possible that a short circuit or other electrical problem on the camera board could put a completely sound MB board into a state where it can't produce a USB device.

If the problem still occurs even without the camera board attached, then you can conclude that the problem is with the "MB" board hardware. Conversely, if the problem does not occur when the camera board is disconnected, then this would indicate that the problem is with the camera board hardware.

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