avrdude: stk500v2_ReceiveMessage(): timeout

Hi,

I have a very strange behavior with my arduino mega 2560. All works fine except this simple code:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
      Serial.print("!!!");

}

These three exclamation marks are the problem.

Can anyone reproduce the problem?

I have an arduino mega 2560. I use windows 7 64 bit with arduino-PR-2568-BUILD-156-windows

Very strange :-)

Here is the error output:

avrdude: writing flash (1744 bytes):

Writing | ##########################################avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail

Yes. !!! is your problem. The IDE, compiler or chip doesn't like it. Try !! and it will work.

ChilliTronix: Yes. !!! is your problem. The IDE, compiler or chip doesn't like it. Try !! and it will work.

Its the bootloader that kicks it out.

Thanks for testing. Ok, I will try a new bootloader.

Do you really really need the !!!? If not I would try not putting !!! in your code.