I have been working for the past six years on a big project with a lot of code.
Recently I have moved from Teensy 3.6 to Teensy 4.1.
Now when I compile it, Arduino shows:
How can the global variables suddenly become so large? On Teensy 3.6 it is less than 10k. Here it is larger than the program code. Where can I start looking? I use a lot of PROGMEM arrays and also a derived class structure in my code.
To get an idea of my code:
https://github.com/sixeight7/VController_v3/
Recently I have moved from Teensy 3.6 to Teensy 4.1.
Now when I compile it, Arduino shows:
Code:
Sketch uses 307840 bytes (3%) of program storage space. Maximum is 8126464 bytes.
Global variables use 345108 bytes (65%) of dynamic memory, leaving 179180 bytes for local variables. Maximum is 524288 bytes.
How can the global variables suddenly become so large? On Teensy 3.6 it is less than 10k. Here it is larger than the program code. Where can I start looking? I use a lot of PROGMEM arrays and also a derived class structure in my code.
To get an idea of my code:
https://github.com/sixeight7/VController_v3/