Sketches not uploading on Arduino Nano :(

Hey everyone, recently I bought 3 Arduino Nano clones to play around, one of them works perfectly but the two others besides coming in a darker blue tone started blinking in the L led the moment I connected them even though I hadn´t written any code yet.
I tried uploading the blinking sketch on them but this error message showed up.

Sketch uses 934 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM6"
Failed uploading: uploading error: exit status 1

I've already tried changing the port and the bootloader but nothing has fixed it.

The usual cause and solution for "can't set com-state..." errors can be found here:

There are two boot loaders, you select them from the tools menu, First select Nano then try it. If it does not work try the old boot loader, that should work. The Nanos should be blinking before you load any code.

A post was split to a new topic: Avrdude: ser_open(): can't open device ".\COM3":

@assigned1231The LED blinked before you started uploading and does it still blink. When uploading the blink sketch change one of the times by a noticable amount and you will know if it uploaded for sure. Try a different cable. I have had problems with the Nano's with a USB-C interface. They were very cable sensitive. Just for grins try the UNO as a board.

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