I just started learning how to use raspberry Pi Pico and now I want to use it with arduino IDE. The problem is I am not able to open serial monitor, I am only getting this error with Pico, arduino nano is working fine. I am using windows 8.1 and arduino IDE1.9.0 beta. I tried 1.8.0 but I'm getting same error, Also I tried it with my friends computer which is running on windows10 but I got same error. Please give me suggestion what should I do?
Does the Arduino IDE's Tools > Port menu show "COM5 (Raspberry Pi Pico)"? COM5 should have that board name label next to it. If not, it's probably not the port of your Pico.
The tricky thing about the boards with native USB functionality like your board is that the USB code that creates the CDC serial port is running on the same microcontroller as your sketch. This means your sketch code can break the USB code, or stop it from running. When that happens, it no longer presents a port.
This only means that you selected COM5 from the Arduino IDE's Tools > Port menu. It does not in any way indicate that there is still a COM5 on your computer. You will see the same even if you unplug the Arduino board from your computer.