Avrdude: ser_open(): can’t open device <port>: access is denied

I've been trying to upload a code to the microcontroller and it's not going in. The first issue encountered is the IDE cannot detect the ports. I've tried fixing the port issue by installing the usb serial driver. I've resolve it by downloading a driver thru this website: USB Serial Port Drivers Download for Windows 10, 8.1, 7, Vista, XP however the next issues is this.


I've tried some of the solutions on similar error and it did not work to me. Any advice or suggestion? Thanks.

I cannot read your screen shot, Posting the code following forum guidelines using code tags will also help. With this information we should be able to answer your question accurately. "How to get the best from this forum". How to get the best out of this forum

Hi @rich29. This "access is denied" error can occur when the port is open in another application. Only one application can have a serial port open at a time so Arduino IDE can't perform an upload under these conditions.

Check to see whether you have any applications running on your computer that might use the port. If they are, close them and then try the upload again.

If the upload still fails with the same error after that, try restarting your computer. In rare occasions, a glitch causes the port to get stuck open. This is one possible cause of the error. Restarting your computer restores the port to the normal working state and so fixes that particular cause of the error.

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