Avrdude: ser_open(): can't set com-state for "\\.\com8" failed uploading: uploading error: exit status 1

This is common problem when dealing with Arduino Nano. I tried all the suggestions such as installing/updating the driver, restarting the computer, checking the port on device manager and granting permission, closed serial monitors but all didn't work.
So here is the solution which I got it fixed Under Tools go to Processor the select "ATmega328P(Old Bootloader)" instead of ATmega328P/168 and that should work fine.

I have some serious doubts that "get com-state" has anything to do with the selected boot loader.

But OK, glad that it worked for you.

From the point of view ,the issue was with bootloader compatibility. By selecting the "ATmega328P(Old Bootloader)" option, you're essentially instructing the Arduino IDE to use settings that are compatible with an older version of the bootloader. This can help establish a successful communication link between the Arduino IDE and the microcontroller, allowing you to upload sketches without encountering errors.

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