ARDUINO 2560 freezing on uploading... tx rx blinking simult.

Hi guys i have a problem uploading one of my sketch on the arduino mega 2560 with 16u chip ATMEGA.

If i try to upload any of the example all works fine, if i try to upload a sketch that runned arduino 1280 it freezes, the rx / tx leds blinks simultaneusly, and the L led is on. The situation wont change untill i unplug the arduino from the usb. When i plug it back the L led start blinking like, blink blink, pause, blink blink pause ecc.
Since the sketch is 110kb big, i really cant immagin what is the problem...

If i wait 5-6 min the bar to end the upload ends this this message...

Binary sketch size: 109788 bytes (of a 258048 byte maximum)
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
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_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x13
avrdude: stk500v2_paged_write: write command failed

I have win 7 ,
IDE arduino 1.0.1
Mega 2560

You may be running into the problem with avrdude and the 2560. See this thread for details:

not worked for me :frowning:

Piton:
not worked for me :frowning:

You replaced the avrdude in 1.0 with a version 0022 or 0023?

There is also another known issue with the 2560 bootloader that will have issues if you happen to have three or more exclamation points in your sketch "!!!"

See this issue for details: Google Code Archive - Long-term storage for Google Code Project Hosting.