Error: avrdude timeout

Hey guys, I've been encountering a problem with uploading any code to my Arduino Mega 2560 (revision 3)

I've searched through the other forum posts, and have tried changing stk500v2 to wiring and vice versa. I've tried changing the programmer, I've tried different computers (both Windows 7 64-bit though, have not tried uploading from a different OS)
I do not have three exclamation points (this problem happens with any code I try to upload [I've been testing with blink]).

Regular output:

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

Verbose output:

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

Using Port : \.\COM4
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: wiring_open(): releasing DTR/RTS
avrdude: wiring_open(): asserting DTR/RTS
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

I've been using this arduino for 6 days, wiring it up to various actuators and buttons.

I think I'm going to try uploading a new bootloader onto it with this guide tomorrow:

If any of you have any suggestions though, help would be much appreciated.

Thanks

It's not getting a response back from the main chip at all by the looks of things.

Have you considered the possibility that whatever you have been connecting up to the board might have fried it? What were you doing just before this started happening?

I can still see the values of my program going through and lighting up pin 13, which makes me believe that the board itself isn't fried.
I encountered the error once when I left a wire going from pin 6 and the reset pin, and taking that out let me upload again. Then after a bit more testing (running actuators, some through controllers, stopping them with a button) it just wasn't letting me upload at all.

Plug in the USB cable and select the right com port.

Mark

Well, I rewrote the bootloader, and still no communication. I think it probably at this point is some sort of hardware problem between the chip and the USB plug-in.

Something might've grounded out and messed some communication wire out. I guess be careful where your wires fall.

Anyways, thanks for the help guys, I'm going to give up on this board.

I rewrote the bootloader,

What!

Mark

I am having the identical problem with the Mega 2560. I downloaded a succession of different versions of a program for reading a DS18B20 temperature sensor. That was the only device connected to the Arduino and I did not change anything as I debugging the software.
All of a sudden I started getting the identical timeout error described in this post and it now will not download any program I previously downloaded successfully. I find it hard to believe I fried the Arduino and I am hoping some guru has an answer for what is going on.

Thanks,
Barry

It might be a wierd question, but you have selected the right serial com port that's fine. But have you selected the right model of board, like "Mega2560 Mega ADK" in your case? Check at the bottom of you IDE windows on the right side.

Some time we can do some unnoticed clicking and change stuff without realizing it...

I found the problem, but I don't know how it happened. I set the IDE to communicate on Com4 and for some reason it changed to COM1. I changed it back to COM4 and now it works!

Thanks for the heads up (or more correctly eyes lower right) Frederic!

Barry

When it's not human error, it's Windows going schizophrenic. :wink: