Could not connect to COM3 serial port

I'm using an Arduino Uno clone and it was all working fine a few days ago, but since I uploaded a sketch to anther arduino (nano clone), the Uno keeps giving me errors when trying to upload some code. Sometimes when I plug it in, Windows says "unknown usb device" (it never happend before), sometimes it doesn't and instead the arduino ide output says: " can't open device "\.\COM3": Access is denied.", or it remains stuck while uploading and then shows:
immagine
The correct com and board seems to be selected. I updated the com3 driver, after the error appeared, and it still does it.

I sometimes can get it working by doing these steps:

  • uploading the skecth with arduino disconnected
  • wait for the error to show up
  • open serial monitor
  • plugging in arduino
  • uploading the sketch

Have you tried with a different USB cable, NOT a charging cable?

No i haven't since i don't own another one. By the way my cable is like this
immagine

Have you tried a different USB port?

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