No serial data received: ESP32 CAM
Asked Answered
S

2

6

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

Silvertongued answered 15/4, 2023 at 9:41 Comment(0)
M
7

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.

Moreville answered 25/4, 2023 at 14:42 Comment(1)
Bravo, finally I could upload a sketch!! Note that there is also a RST on the dev board, this one is not the one that the Grogsenegger points to, he points to the one just behind the sd card slot!Kirovabad
A
0

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

Athletics answered 20/2 at 0:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.