Mega2560 hangs while uploading one specific project

Hi,

I have written a program to use with my irrigating system at home. At a point it hangs when i try to upload it. Even after I brought it back to a point where it worked in past. Tried on a win 7 64bit, win7 32 bit and an XP..... A Fundruino Mega from a friend does the same, his Uno uploads the program and works fine. When he loads the hex in a Proteus simulation it works fine with de 2560 chip.

Other programs and the ECHO test works fine. Have the latest USB driver. Hangs on arduino 1.0.5 , 1.5.5 and AVR studio

Does anyone have a sollution for this?

Thanks,
Ronald

this part of the code was the problem:

    lcd.print("!!! Alarm !!!");

Let me guess ( I can't see your code from a tablet), you've got "!!!" in there somewhere.

Hi AWOL,

Indeed I had "!!! Alarm !!!" as message for on a LCD, after I make it " Alarm message!" the uploads works fine!!! :slight_smile: So much thanks for it. I was scratching my head 3 weeks for it, a other program was only missing this message and other variables names and worked fine the hole time.

Great you found it so quikly in a text reader i gues!!!

Kind regards,
Ronald

AWOL:
Let me guess ( I can't see your code from a tablet), you've got "!!!" in there somewhere.

I see it:

  // Schrijf alarm meldingen
  if (modAlarm1 == HIGH){
    lcd.clear();
    lcd.setCursor(2, 0);
    lcd.print("!!! Alarm !!!");
    lcd.setCursor(0,1);

Great you found it so quikly in a text reader i gues!!!

I still haven't read it :wink: