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

0

4 Answers 4

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 — 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.

Sign up to request clarification or add additional context in comments.

1 Comment

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!
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

Comments

0

I had the same problem . It was showing esp 32 fatal error. exit status 2. then it was suggesting the troubleshooting html page. Though I had my drivers installed and other set up was done too. Later I tried with new esp 32 and the problem was gone. So, if all the necessary set up is done in your pc and also the data cable is operational and still this error,

there is a high chance that your esp 32 is somehow damaged and it won't work further.

Comments

0

Please note that there are two "RST" buttons. One on the motherboard and one on the cam board. When using the IO0 long press and short RST press methods above, be sure to use the RST button on the cam board. The RST button on the motherboard does NOT work.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.