how to resolve this i tried two different board and also two different cables
avrdude: ser_open(): can't set com-state for "\.\COM5"
how to resolve this i tried two different board and also two different cables
avrdude: ser_open(): can't set com-state for "\.\COM5"
Are you sure that this is the port of the Nano?
What do you see with these?
IDE >> Tools >> Port >> (your port)
IDE >> Tools >> Board >> (your board)
IDE >> Tools >> Processor >> Atmega328p
or for Nano with CH340 driver (and the board support package installed)
IDE >> Tools >> Processor >> Atmega328p (old bootloader)
Exactly the same thing happened to me yesterday when I plugged in a Nano clone bought on Aliexpress.
The solution for me was as described by @xfpd. Selecting the old bootloader option fixed it for me.
Ignore this - I was likely having a senior moment .....
I know that you know your stuff Was that indeed the "set com-state" error?
I've seen more reports recently; they always involved the CH340 TTL-to-USB converter. If your board indeed has the CH340, one solution that was mentioned was to re-install the driver.
For the record, which Windows version are you using?
Well that's strange. I can't reproduce that error message again simply by selecting the standard ATmega328P processor option. Now I have the usual "programmer is not responding".
I wonder if I did indeed download newer CH340 drivers and blanked that memory due to uttering various 4-letter incantations!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.