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

Hi everyone,

Can you help me with the following problem?

I have an Arduino Uno connected at COM5. I can get the board information without any problems. Also, the correct Arduino is selected. I uploaded several sketches in the past without any problem.

But suddenly I receive the following error when trying to upload :

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

The sketch itself compiles without any error. However, I receive always the same error over and over again. I completely deleted the Arduino IDE which is the latest stable version and reinstalled again. I also deleted and installed the COM5 port but no difference. The IDE remains giving the same error. Also resetting has no effect.

Can you please help me with this problem?

I will appreciate your help very much and thank you in advance.

Have a nice day.

Kind Regards,

ChronoWerX

If you haven't already, try restarting your computer. Sometimes a glitch will cause a port to get stuck in an unusable state and restarting will fix that.

Hi Pert,

Thank you very much for your reply which I do appreciate.

Restarting the computer did not solve my problem. What solved my problem is disconnecting the Arduino for a second or 10 and then reconnect. Then I have my link to the Arduino back.

Have a nice day.

Chris

Thanks for taking the time to post an update @ChronoWerX. I'm very glad to hear you found a way to get your Arduino working again. Enjoy!
Per