Go Down

Topic: Encountered a bug in Arduino IDE 1.0.2 (Read 864 times) previous topic - next topic

Suma

Hi everyone  :)
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: [Select]
Serial.print("ACCESS DENIED !!!");
or
Code: [Select]
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: [Select]
Serial.print("ACCESS DENIED !!");
and
Code: [Select]
Serial.println("ACCESS DENIED !!");

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

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

void loop()
{
  Serial.println("ACCESS DENIED !!!");
  delay(1000);
}
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

Tom Carpenter

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.
~Tom~

Suma

thanks tom for your valuable input. but mine was arduino mega2560 rev3.. i guess both share the same bootloader.
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

Louis Davis

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.

Go Up