me-hapi
me-hapi

Reputation: 71

No serial data received: ESP32 CAM

I keep getting error as I upload my code to my AI thinker esp 32 cam. I connect it using microusb and it always has this error:

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

Upvotes: 6

Views: 20254

Answers (2)

Gorgsenegger
Gorgsenegger

Reputation: 7856

I had the same problem and couldn't find a solution until I came about this post that suggests to perform the following steps:

  • Plug the board in (i.e. connect it to your computer via a USB cable)
  • Press and hold the IO0 (which is on the board with the USB connector)
  • Now press the RST button (this one is on the ESP32-CAM board, slightly tricky to press when the two boards are plugged together, but possible — this is the button just behind SD card slot)
  • Release both buttons

Now the ESP32-CAM should be in bootloader mode and you should be able to upload sketches to it.

Note: It MAY BE required to do this while Arduino IDE shows "Connecting...." and it will connect.

Upvotes: 7

user23331262
user23331262

Reputation: 1

All the suggestions did not fix my problem. However, I downloaded a usb to serial driver and installed it before i tried to upload again, and it succeeded. The problem is gone.

See the CH340 Drivers page

Upvotes: 0

Related Questions