I was trying to upload the source code of a project to the Arduino UNO and this is the error that I keep on receiving.

After I closed and reopened it again, the Port option is gray. I tried everything (installing new drivers, uninstalling it) but nothing works. This board works on my PC (Win 10) but doesn't work on my laptop (Win 11).

avrdude: ser_open(): can't set com-state for "\\.\com3" an error occurred while uploading the sketch.
  • Is it a genuine Arduino UNO or a Chinese clone? If a clone, what USB chip does it have on the board?
    – Majenko
    May 14 at 10:45
  • @Majenko It's a Chinese clone with an Atmega328p chip
    – Shawn sony
    May 14 at 12:43
  • That's the MCU. What's the USB chip? Is it an ATMega16UI2 or a CH340G?
    – Majenko
    May 14 at 15:03
  • @Majenko It's Atmega16U2.
    – Shawn sony
    May 14 at 16:20


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.