Hi guys!
I'm trying to upload a sketch to an arduino micro and i got this REALLY weird error:
avrdude: ser_open(): can't set com-state for "\.\COM4"
An error occurred while uploading the sketch
I would be grateful if someone could help!
Hi guys!
I'm trying to upload a sketch to an arduino micro and i got this REALLY weird error:
avrdude: ser_open(): can't set com-state for "\.\COM4"
An error occurred while uploading the sketch
I would be grateful if someone could help!
How are you trying to upload? USB or ICSP?
USB. The cable is in the computer USB port.
One of two things can cause this. COM4 is not the correct port or something else is using COM4. Like a terminal program.
Do you know that COM4 is the USB port? Open the device manager and expand the ports line. See what port appears when you plug in the USB cable.
It's not unusual for me to have two or three Arduino boards plugged in at the same time, and I have accidentally uploaded code to the wrong board... I found a neat program for the PC that simply monitors the com ports and pops up a notification when something is plugged in or unplugged.
Also, you didn't post a schematic of your project (A real schematic. NO Fritzing pretty pictures, please). If you have anything connected to D0 and D1, you could be interfering with the UART which uses those two pins.
Thanks!
Although I did restart the computer and it still happened
How did you verify the com port number?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.