Hello,
I’m new to Arduino and working with an Elegoo Mega 2560 from the starter kit. I’ve been trying to get the basic Blink sketch uploaded, but I keep hitting the same error. I could use some help troubleshooting because I'm getting a little frustrated here.
I've used ChatGPT to help me troubleshoot and I've spent a good two hours now trying to get the blink training program to work. Here's what I've done:
- Installed the CH340 drivers (multiple versions, including the recommended ones).
- Uninstalled and reinstalled the drivers via Device Manager.
- Moved the board between both USB ports on my laptop.
- Tried two different USB cables
- Changed the COM port number in Device Manager (tried COM7, COM9).
- Made sure Serial Monitor and Serial Plotter are closed.
- Restarted the IDE, ran it as administrator, reinstalled the Arduino AVR Boards package.
- Tried tapping/resetting the board at “Uploading…” time.
- Tried changing bit per second speed to 115200 under advanced settings under the com port in device settings (saw someone else try that and it worked for them)
None of that has worked.
Here is what is working:
- The board powers on (green ON LED).
- The built-in orange L LED is flashing.
- In Device Manager, Windows correctly shows USB-SERIAL CH330 (COM9)
- In Arduino IDE, Tools → Port** shows the same COM number (with “Arduino Mega 2560”).
Whenever I try to upload Blink, I get this error
Sketch uses 1536 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM9"
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.
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
Failed uploading: uploading error: exit status 1
I'm really not sure what to do next. ChatGPT thinks it could be a hardware issue and I'm really hoping it's just something simple because I'm such a novice. I gotta say, as an adult trying to work with a kids starter kit, this experience has been equal parts humbling and frustrating.
Thanks,
WB