I have a program of 17,906 bytes and it behaves very strangely, in that it hangs on lines of code even before it reaches them.
It hangs on say lcd.print lines using a 4 line display, if I delete the last 2 lines then it then doesn't hang anymore. I have code calling the lcd in 10 places and confident it's not a programming bug.
Another example to quote code is:
void decode_one_key ()
{
menuoptions = 1;
}
This above works fine. But I had to cut out lines from the original else it hung.
This version below crashes, the serial monitor crashes and all but odly well before this line is reached.
void decode_one_key ()
{
if ( menuoptions == 1 ) // then this pressing of 1 must be to pick auto mode so lets set it to 1
{
numbercalc(1);
}
else
{
menuoptions = 1;
}
}
I have had other occurrences of it hanging well before it reaches line of code.
It behaves as if I have hit a memory limitation.
It behaves the same if running in serial monitor or standalone.
I will be very grateful for a pointer on how to overcome this issue.
Many Thanks
Les