Serial port COM12 A fatal error occurred: Could not open COM12, the port doesn't exist Executing command: exit status 2

I'm trying to turn on LED using esp32 by following this video Using Arduino IoT Cloud with ESP32 | Is it better than New Blynk 🤔 - YouTube
but when I tried uploading the code it just says:

Serial port COM12

A fatal error occurred: Could not open COM12, the port doesn't exist

Executing command: exit status 2

Has someone ever experienced this? Pls tell me on how you solved this issue.

Do you have a cable connected to your PC?
Can you see the board in device manager?

Yes I have a cable connected to my laptop and I can see the board in my devices
I also forgot to mention I used Arduino IoT on this one

is it possible that you store the code in a local folder so you don't have anything to do with the cloud
have you tried a different com port yet?
Is the serial monitor not open in your task bar?

1 Like

I cant change com port because it has only one com port
and I cant even open the serial monitor since it will just say serial port unavailable
and I have given a task by my teacher to use Arduino cloud for this project

Do you see the board in the "devices" exactly on COM12 ?

Yes I can see it but it wont recognize COM12 and just says it doesn't exist when it does

I am facing exactly the same error while using esp32 with Arduino IoT Cloud. Somebody please tell me how to fix it.

I have faced the same issue as yours. Here is how I resolve it. Try to close all your arduino IDE opened in your desktop. Then compile and upload the code again using arduino IOT cloud. Problem should be resolved. Hope it helps!

3 Likes

Thank you I had the same problem and this work.

This worked for me

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.