UPLOADed once then avrdude: stk500v2_ReceiveMessage(): timeout" error

I'm getting the infamous "avrdude: stk500v2_ReceiveMessage(): timeout" error.
I know there's a ton of things that can cause this so let me narrow it down...
I've had no problems uploading my sketch to a KEYESTUDIO Mega Plus 2560 R3 board.
Yesterday I tried to upload the same sketch to a brand new ELEGOO MEGA R3 ATmega 2560 board using the same computer.
In the first few tries, I got the avrdude timeout error. I proceeded to play around with COM settings, etc. and then it uploaded successfully. Didn't really know what I did to get it to work but I knew that this "sketchy" start was a bad omen. And I was right.
Now when I try to upload, I always get the avrdude error. The IDE can read "Board Info" so the port is correct. I tried different cables, USB ports to no avail.
I can still upload the same sketches to my other board.
Can I rule out the boot loader since it uploaded that one time or could it have gotten corrupted?
Thanks.

Bare Mega, or else with peripheral hardware connected?

I'm getting the infamous "avrdude: stk500v2_ReceiveMessage(): timeout" error.

Never paraphrase or quote error listings. Copy and paste the entire listing after enabling full errors in the IDE menu.

nothing else is connected

Using Port : COM11
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.

Do you see com11 in the device manager?

Or try - unplug the Arduino. Look at the available ports in the tools menu. Now plug it in. Does any new port appear?

I can't check now but that doesn't look right.

Please enable verbose output during upload and disable verbose output during compilation and attempt an upload.

Post the full error message here using code tags.

Which version of the IDE are you using?
Which operating system?

No that isn't right, I use AVRISP mkII or USbasp. either work for me with a mega 2560

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.