grease_lighting
Well-known member
I'm using Arduino 1.8.5 along with TeensyDuino 1.40.
I am using a Teensy 3.2. Currently the sketch is at 42% of program storage space and 18% dynamic memory.
I am having problems with my code running properly.
In particular it hangs at the tft.print statements when displaying a menu screen.
When it hangs at the tft.print, I must press the program load button to load a new sketch when debugging.
I'm trying to boil the code down to meet the forum rule 'post code example'.
I find that by deleting some variables I can add an equal amount more without encountering the error.
I also find that I can safely declare an array to a larger size without encountering the problem. After all I am not adding another variable.
So the question is. . . . Is there a limit to the number of global variables used?
Thanks.
I am using a Teensy 3.2. Currently the sketch is at 42% of program storage space and 18% dynamic memory.
I am having problems with my code running properly.
In particular it hangs at the tft.print statements when displaying a menu screen.
When it hangs at the tft.print, I must press the program load button to load a new sketch when debugging.
I'm trying to boil the code down to meet the forum rule 'post code example'.
I find that by deleting some variables I can add an equal amount more without encountering the error.
I also find that I can safely declare an array to a larger size without encountering the problem. After all I am not adding another variable.
So the question is. . . . Is there a limit to the number of global variables used?
Thanks.