Pages: [1]   Go Down
Author Topic: Encountered a bug in Arduino IDE 1.0.2  (Read 781 times)
0 Members and 1 Guest are viewing this topic.
Pimpri, Pune
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone  smiley
i just came across a bug in Arduino IDE 1.0.2.
The bug was when you try to upload any code having the following line
Code:
Serial.print("ACCESS DENIED !!!");
or
Code:
Serial.println("ACCESS DENIED !!!");
the code compiles successful, but while uploading the process starts and later it hangs in between.

whereas the following code works fine
Code:
Serial.print("ACCESS DENIED !!")
;
and
Code:
Serial.println("ACCESS DENIED !!");

can anyone give it a try and let us know whether you encountered the same problem

sample code
Code:
void setup()
{
  Serial.begin(9600);
}

void loop()
{
  Serial.println("ACCESS DENIED !!!");
  delay(1000);
}
Logged

Regards,
kS

"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something." -Heinlein, Robert

Leeds, UK
Offline Offline
Edison Member
*
Karma: 78
Posts: 1719
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This has been discussed many many many times. There is a glitch in the Arduino Mega 1280 bootloader wherby if three ! are recieved in a row, the bootloader enters a funny mode and doesn't complete the upload.

Simple work around is to just not use "!!!" anywhere.
Logged

~Tom~

Pimpri, Pune
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks tom for your valuable input. but mine was arduino mega2560 rev3.. i guess both share the same bootloader.
Logged

Regards,
kS

"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something." -Heinlein, Robert

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

This issue has been fixed, see here:
https://github.com/arduino/Arduino/issues/392

You will need to upload a new bootloader to your 2560 to fix the problem.
Logged

Pages: [1]   Go Up
Jump to: