ESP32 cant upload sketches

Hello, I just bought an ESP32 Dev module. First, I installed cp201x drivers from Silicon Labs after installing the drivers devkit appeared in the device manager as " Silicon Labs CP210x USB to UART Bridge (com3)" (check screenshot). and I configured the Arduino IDE by adding the esp32 JSON link to preferences and installing esp32 in the board manager.

Then I selected the board type as "ESP32 Devkit Module" and the port as com3. To check that everything is working correctly I tried to upload the esp32 example GetChipId example but after some time it output the below(second screenshot) error.

When I clicked board info in the Arduino IDE it showed it is an unknown board (Check screenshot 3)

I tried re-installing everything but doesn't seems to fix it. I bought this board yesterday so it's a brand-new module. I can return this module to replace it if this is a faulty unit. But I wanted to know whether I am doing something wrong first. (I attach two photos of the module too)



These are photos of the module


Did you try:

Press and hold, RESET

Press and hold, BOOT

Release, RESET

Release, BOOT.

Compile/upload your sketch.

Yes but the error is still there

When the Connecting......................... message appears, press and hold the BOOT switch and release the switch once uploading begins.

Upload the following sketch which blinks the on-board blue LED.

#define LED_BUILTIN 2

void setup() 
{
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() 
{
  digitalWrite(LED_BUILTIN, HIGH);   // turn LED on 
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn LED off 
  delay(1000);                       // wait for a second
}

still not working I think this module has some faults. I will return this and replace a new one. thank you for your help

Try using

DOIT ESP32 DEVKIT V1

You mean Connecting...................... message continues?

yes ..and shows this error
esptool.py v4.5.1
Serial port COM3
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 2

In such case, as a part of trouble shooting, I would use another ESP32 or ESP8266.

didn't fix the issue

i don't have another board at the moment but i checked this on another pc issue is same in that pc and changed the USB cable also

I have the same unit. I use DOIT ESP32 DEVKIT V1 and that works.

1 Like

I have one ESP-32-WROOM-32 and two ESP32-WROOM-32 Boards and all are marked as ESP32S at the back. I choose ESP32 Dev Module for them and they work well.

1 Like

yeah, I changed all the variables other than the board. so at this point, this board must have an issue with the hardware I'll just return it for replacement. no point in wasting any more time. Thanks, everyone for your tips and helps

Take a look at this thread as well: (SOLVED!) Esp32 devkit v1 not loading sketch

He had a missing resister in my board I see a midd match component maybe that is the issue (check the image )

We need to look for the board's component layout and the schematic to asses the role of the missing component.

So basically I just found two variants of the boards with one little difference between them (I'm just eyeballing them because I don't have much knowledge about electronic circuits all my knowledge is on software development)

first and most common is this
1
focus on the red ring

The second one and the rare version is this (which is also my board)

so comparing my board to this second version everything is identical other than the below component

so I'm not sure whether this is the case for this faulty behavior

Mine looks like this (it works fine):