This is only a curiosity at this point. I have been working on a project using the Teensy 3.6 and decided it would be interesting to see if it would even compile when targeting the Teensy 4.1. I switched from using TeensyDelay for the timers, to using TeensyTimerTool in order to get it to compile without error. I am using Teensyduino 1.52 / Arduino 1.8.12. The 5X increase in dynamic memory strikes me as being a bit unusual, so I am only interested in knowing if this could possibly be expected.
The project uses the following libraries:
I would like to see if I can move my project to the Teensy 4.1 without major breadboard changes. That is what prompted me to do this comparison, without knowing how practical it might be to make the change.
Thanks,
Chuck
This is memory usage when compiled for the Teensy 4.1:
Sketch uses 114272 bytes (1%) of program storage space. Maximum is 8126464 bytes.
Global variables use 139956 bytes (26%) of dynamic memory, leaving 384332 bytes for local variables. Maximum is 524288 bytes.
This is memory usage when compiled for the Teensy 3.6:
Sketch uses 107216 bytes (10%) of program storage space. Maximum is 1048576 bytes.
Global variables use 25484 bytes (9%) of dynamic memory, leaving 236660 bytes for local variables. Maximum is 262144 bytes.
The project uses the following libraries:
Using library ILI9341_t3 at version 1.0
Using library SPI at version 1.0
Using library ADC at version 8.0
Using library SdFat-beta-master at version 2.0.0-beta.6
Using library USBHost_t36 at version 0.1
Using library TeensyTimerTool-master at version 0.1.9
Using library Encoder at version 1.4.1
Using library XPT2046_Touchscreen at version 1.3
I would like to see if I can move my project to the Teensy 4.1 without major breadboard changes. That is what prompted me to do this comparison, without knowing how practical it might be to make the change.
Thanks,
Chuck