Arduino nano error while uploading my code

when i try to upload any type of code 'tried the basic blinker one also' i get this error message
"avrdude: ser_open(): can't open device "\.\COM6": Access is denied.

Failed uploading: uploading error: exit status 1"
sloutions i used and didn't work:
1- restarted my laptop
2- changed the port
3-changed the processor to old booter
4-made sure every connection is right
5- tried using the old version of arduino which is 1.8
with all of that nothing happened but as a note once like every 10 tries of uploading my code it works but then the time after that it goes back to the same error

Welcome to the forum

Is anything else on the PC using COM6 ?
Have you got the Serial monitor open in the IDE ?

Thanks!
no i dont have anythin opend

Try a known good cable.

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