Can't open device. Access is denied

Yes, I know. This question has been asked before. But I've tried all the answers on all of the previous posts that I could find and none of them worked.
I'm new to Arduino. I have a vanilla Nano. I have successfully written a couple of small sketches that worked just fine. But now I have a sketch that is a bit more ambitious and all I get are "avrdude: ser_open(): can't open device "\.\COM3": Access is denied." Rebooting the PC doesn't work, using my laptop doesn't work. Playing with the code doesn't work. I can still use the other sketches without any errors; just not this one. And the code compiles just fine.

Have you closed the serial monitor?

2 Likes

Bravo!!
Many, many thanks!
That was indeed the problem. So simple but I struggled for hours trying to figure it out.
Thanks again.

mgy998

1 Like

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