PlatformIO Community

Could not open port

hello, i have problem with PlatformIO, i tray acces my board Esp32. DO IT ESP DEV KIT v.1

i’m tray to view serial monitor but result is could not open port (acces danied) may be some body can help me…
thanks alot.Capture9

“Access is denied.” normally means that there is already another program using that COM-port. Windows allows only one program at the time to access COM-ports. Do you have a serial monitor opened on that port elsewhere?

I don’t have a serial monitor that is opened on that port anywhere else. even I tried replacing the com port from the advanced settings on the menager device, but the results remained the same, as if the board wasn’t readable, even though the menager device was detected.Capture8

Maybe try to open the port with a different serial monitor? I don’t know any standalone applications for that (you will probably find a bunch if you google) but the one that comes with the Arduino IDE or pyserial for Python.

I’m having the same problem, particularly with M5StickC+ which uses the FTDI driver for the serial connection.
My issue is only with PlatformIO. I can connect to the COM port for the M5 just fine with Putty, Arduino IDE and others. I even verified that Putty would report an error connecting if another application had a hold on it.
I even tested Putty connection right after PIO gave the Access Denied error.
Some of my fixes, like rebooting the PC might work, other times it does not.
I think the Access Denied is a false or misleading error that is being caused by something totally different.