Go Down

Topic: 1.0.3 hangs from sending code with Serial.println("!!!"); to Mega 2560 (Read 829 times) previous topic - next topic

mishka

:smiley-eek:
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:
Code: [Select]
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=-

SurferTim

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


SurferTim

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.


Louis Davis

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

See here for more details: https://github.com/arduino/Arduino/issues/392

SurferTim


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

See here for more details: https://github.com/arduino/Arduino/issues/392

Good deal!!! So with v1.0.4, I can use this again?
Code: [Select]
Serial.println("IT WORKS!!! I AM SOOO GOOD!!!");

AWOL

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

Why would you want to?
The only punctuation that comes in threes is ellipsis...
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

SurferTim


Go Up