Arduino not able to set Com-State

I have been using Arduino UNO for my projects.

I didn’t use it for a few weeks, but now, when I try to upload a program, this error always pops up.

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

I have already gone through multiple solutions on the internet, like using a different cable, restarting the computer and reinstalling the drivers and software, but none of them works for me.

Here is the screenshot of the error when uploading a simple blink code for testing:

Please help me fix this error.

Hey @aditya2010.kadiyala, this may help

Hi @zameelalimohammed282

I already had the latest ch340 driver for COM3, and it’s not letting me roll back the changes. I even tried disabling and enabling the device in vain.

But I did something which fixed the issue completely!

It turns out that the avrdude driver wasn’t updated to the latest version, and that all made the difference. I just installed another driver from the avrdude website and it fixed the issue.

Thanks anyway!