Hello all,
I'm running Arduino IDE 2.3.6 on Windows 11. I've got it connected to an official Arduino Nano. I can upload my code once, and this works fine. When I try to upload the code a second time, I get the following error:
avrdude: ser_open(): can't open device "\\.\COM4": Permission denied.
Failed uploading: uploading error: exit status 1
When I reboot my laptop, I can upload the code once, and then I get the error again.
When I copy the code to a different laptop (which runs Fedora 42) the code uploads multiple times fine.
And even weirder: when I use a cheap Chinese look alike I don't run into this issue and I can upload the same code multiple times without issues.
I've tried reinstalling the Arduino IDE already, but that didn't solve the issue.
What could be the reason for this issue, and how can I solve it?