What happened? I have no idea. My COM 3 port is recognized. When I tried to compile and download to my board, it gave me errors. I was using an oscope on another port COM5 which was also working. Any idea what these messages mean?
Looking for upload port…
Auto-detected: COM3
Uploading .pio\build\megaatmega2560\firmware.hex
avrdude: ser_open(): can’t set com-state for “\.\COM3”
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
I meant to say my COM3 port isnt working even though Platform IO seems to recognize it.
Here is the message I get:
Looking for upload port…
Auto-detected: COM3
Uploading .pio\build\megaatmega2560\firmware.hex
avrdude: ser_open(): can’t set com-state for “\.\COM3”
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
COM Port 3 shows up in my Device Manager. I ran Arduino and pulldown for PORT 3 is shown. I even deinstalled Arduino and installed more recent version.
Can the Arduino IDE upload to that port? Seems like a problem with your USB port to me. Do you power anything significant from your USB port or hub which might interfere? If in doubt, disconnect all unnecessary USB / serial devices, reboot and retry.
Also you should have a read through Upload error: avrdude: ser_open(): can't set com-state for "\\.\COM17" - Avrdude, stk500, Bootloader issues - Arduino Forum because it suggests that either the drivers broke or your Arduino Mega hardware.