Pages: [1]   Go Down
Author Topic: 1.0.3 hangs from sending code with Serial.println("!!!"); to Mega 2560  (Read 602 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 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:
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=-
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 115
Posts: 5380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for reply!
So it's known bug  smiley
 
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 115
Posts: 5380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 115
Posts: 5380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
Serial.println("IT WORKS!!! I AM SOOO GOOD!!!");
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

"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.

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 115
Posts: 5380
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: