1.0.3 hangs from sending code with Serial.println("!!!"); to Mega 2560

:astonished:
Hi!
Would like report strange thing that I found.

My env.: WInXp, IDE 1.0.3 , Mega 2560
Problem: IDE hangs when sending program to arduino board. Hangs mean that progress bar get 95% and stop. If disconnect usb, IDE continue work as usual.
Reason: thi ONLY happen if program have 3 or more "!"
For example:
Serial.println("Huray!!!"); - hangs
Serial.println("Huray!!"); - sent and work ok.

This happen even with BareMinimun program:

void setup() {

Serial.begin(9600);
Serial.println("Huray!!!");
}

void loop(){
聽 
}

Interesting is it only my local bug or IDE feature?

Thanks and have a nice day.
-=mishka=-

Yes, it does. It only does that when uploading code, so do not use "!!!" in your code.

Thanks for reply!
So it's known bug :slight_smile:

I'm not sure you would call it a bug. That is the signal you want the bootloader to enter a diagnostic mode. You can avoid that by using the ICSP to program it if you feel it is absolutely necessary to upload "!!!" in your code.

Yes, it is a known bug and a fixed bootloader should be included with release 1.04:

See here for more details: STK500V2 bootloader on Mega 2560 fails on sketches containing !!! [imported] 路 Issue #392 路 arduino/Arduino 路 GitHub

Good deal!!! So with v1.0.4, I can use this again?

Serial.println("IT WORKS!!! I AM SOOO GOOD!!!");

So with v1.0.4, I can use this again?

Why would you want to?
The only punctuation that comes in threes is ellipsis...

@AWOL: I'm sorry. I failed Sarcasm 101 in college. :wink: