Reputation: 71
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
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:
IO0
(which is on the board with the USB connector)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)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
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.
Upvotes: 0