How can I fix avrdude: ser_open(): can't set com-state for "\.COM5"?

Hi all,

I am new to the Arduino community, and I had recently bought an Arduino Uno (i think it's R3 SMD Clone, I'm not very sure if I can tell). I had a problem finding the serial port before but finally found the serial port COM5. Then I tried to connect my Arduino Uno and upload the Blink sketch. It looks like the compilation is just fine, but when I upload I got this error:

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

avrdude: ser_open(): can't set com-state for "\.COM5"



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I tried resetting the board, unplugging and plugging it again, but to no avail. I tried shutting down and turning on my laptop again, but the error persists (PS. I'm using Windows 10 64-bit). It seems like many people in the forum already fixed this problem, but I have no idea how to get it working. Does anyone know how to fix this asap?

Thanks a lot.

It can be Win driver problem. If it is clone, you will need probably driver for the CH340 chip. The chip is next to USB connector. Genuine UNO R3 it has ATmega16U2.
Driver for CH340 is not a part of Arduino SW. You have to download and install it yourself.

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