Port Error occuring on device manager and on Arduino IDE

I am trying to run a simple 'led blink' program using ESP32 and Arduino IDE, while setting it up I have used Silicon Labs CP210x driver (CP210x USB to UART Bridge VCP Drivers - Silicon Labs) as suggested in the hardware module. Initially my Windows system didn't detect it, so I manually added it.

dm_ports

It is giving this kind of error , so I tried to update it, uninstall & reinstall it again but nothing worked.

Also I have my code for led blinking and on uploading it is giving the following error!

code :

const int ledPin = 2;

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

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

Error :

Sketch uses 267933 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20184 bytes (6%) of dynamic memory, leaving 307496 bytes for local variables. Maximum is 327680 bytes.

"C:\Users\admin\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM5" --baud 921600  --before default_reset --after hard_reset write_flash  -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\admin\AppData\Local\Temp\arduino\sketches\C5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.bootloader.bin" 0x8000 "C:\Users\admin\AppData\Local\Temp\arduino\sketches\C5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.partitions.bin" 0xe000 "C:\Users\admin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\admin\AppData\Local\Temp\arduino\sketches\C5BFBB22C7463170D2728E91C796CD6D/sketch1.ino.bin" 
esptool.py v4.6
Serial port COM5

A fatal error occurred: Could not open COM5, the port doesn't exist
Failed uploading: uploading error: exit status 2

I have been working on this from past couple of days and I have also tried different drivers of Silicon Labs but nothing worked.

Help Appreciated!

1 Like

I moved your topic to an appropriate forum category @shubhankar812.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

This is actually my first question here.
Thanks for helping out!

1 Like

While I have no answer, it's likely that to solve this, someone's going to need a link to the exact product you're struggling with; there are seemingly hundreds of slightly different ESP32 modules, so if you can identify what you have, it may help.

It is ESP32 WROOM-32 Development Board
and the driver I am using is CP210x Windows Driver.

Welcome to the forum!
I think your topic is the first topic you've made since you joined 14 hours ago,
and you've made your topic 14 hours ago!
please read this if you didn't already!
https://forum.arduino.cc/guidelines

as for your problem:
did download the one highlighted in red?
Installing-CP210x-USB-to-UART-Bridge-Drivers-Windows-PC

Thanks for the guidelines. Yeah I downloaded the highlighted driver.

you're welcome!
I'm sorry your driver doesn't work,
I'll see if I can find a solution.

Can you suggest me which one i should opt for, as I have a windows system?

1 Like

you already got the recommended version.
are you perhaps using windows 11?
if so the process might be different.

1 Like

What's the process for windows 11? I actually tried using Windows 10.

1 Like

for the windows 11 you might need the universal windows driver, as it's the newest windows driver.
I think it's made for windows 11.

1 Like

Okay I will try that out with Windows 11.
Also will this Universal Windows driver work for Windows 10?

1 Like

okay, I hope it works!
I used the windows driver for window 10, and never had a problem, I'm unsure as to why you're having issues.

1 Like

Okay , thanks I will try with Windows 11.

1 Like

the universal windows driver might work for windows 10, it's "universal", so you might want to try that one before you download windows 11.

Although I'm not very knowledgeable in this area, if windows does not detect it, I doubt manually adding it will help.

You must look at the cause why Windows did not detect it in the first place. One possible cause can be the cable; it might be a charge-only cable instead of a data/sync cable.

3 Likes

however, I don't work at silicon labs, nor do I chat in their community, so I hope I didn't make a mistake.

it should look like this:


COM number doesn't matter.

1 Like

please notify me if it doesn't work, so i can see what i can do.