Hi, I've been working on a project with this Arduino board and I was able to upload to it for a while, but eventually it wouldn't let me upload anymore. So I have been left with the last program I uploaded back in 2018; I will include the error message logs. Any help would be a grace.
Some things I have tried to fix this problem:
-Check COM ports in device manager as well as IDE to make sure they match
-Check for correct board and processor in IDE
-Reinstall IDE through windows store as well as tried to upload with the online version
-Reinstall drivers for COM port
-Run IDE as administrator
-Tried uploading on multiple PCs
-limited the number of programs running at the time of upload
Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Sketch uses 4172 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 191 bytes (2%) of dynamic memory, leaving 8001 bytes for local variables. Maximum is 8192 bytes.
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
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.
the selected serial port
does not exist or your board is not connected
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
avrdude: stk500v2_getsync(): timeout communicating with programmer
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.