4

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

me-hapi
  • 69
  • 1
  • 4

1 Answers1

2

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)
  • Release both buttons

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

Gorgsenegger
  • 7,356
  • 4
  • 51
  • 89