Go Down

Topic: Boot fail after Sketch Upload. (Read 3631 times) previous topic - next topic

max300969

Hello everybody,
I'm using a Mega 2560, stacked with an original GSM shield (integrated antenna) and a Tinkerkit! (mega version). The system is used to remotely control a relay and to periodically read some analog inputs.
Everytime I upload a new sketch in the system, the first boot always fails, hanging on the GSM connection code:

while(NotConnected)
{
    if(GSMAccess.begin(PINNUMBER,false)==GSM_READY)
      NotConnected = false;
    else
      delay(1000);
}

From the second boot, the system deterministically perfoms the boot procedure correctly.

Has anyone already experienced such a behaviour? Any hint would be appreciated.

Thanks in advance.


steinie44

Post all of code, Use the # code tags.

Go Up