Error message when compiling for Teensy 4.1, Arduino 2.1.0 Teensyduino 1.58.1
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
FLASH: code:163572, data:323512, headers:8528 free for files:7630852
RAM1: variables:380704, code:160200, padding:3640 free for local variables:-20256
RAM2: variables:16576 free for malloc/new:507712
Error program exceeds memory space
When compiled for Teensy 3.6
Sketch uses 495228 bytes (47%) of program storage space. Maximum is 1048576 bytes.
Global variables use 70916 bytes (27%) of dynamic memory, leaving 191228 bytes for local variables. Maximum is 262144 bytes.
The code has conditional compiles for different pins and for different i2c libraries 4.1 uses Wire.h and 3.6 uses i2c_t3.h
Teensy 4.1 has more flash and ram memory than Teensy 3.6 so why does Teensy 4.1 exceed memory space? Is this a linker problem with how ram is allocated? Does anyone have a clue as to why this is happening?
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
FLASH: code:163572, data:323512, headers:8528 free for files:7630852
RAM1: variables:380704, code:160200, padding:3640 free for local variables:-20256
RAM2: variables:16576 free for malloc/new:507712
Error program exceeds memory space
When compiled for Teensy 3.6
Sketch uses 495228 bytes (47%) of program storage space. Maximum is 1048576 bytes.
Global variables use 70916 bytes (27%) of dynamic memory, leaving 191228 bytes for local variables. Maximum is 262144 bytes.
The code has conditional compiles for different pins and for different i2c libraries 4.1 uses Wire.h and 3.6 uses i2c_t3.h
Teensy 4.1 has more flash and ram memory than Teensy 3.6 so why does Teensy 4.1 exceed memory space? Is this a linker problem with how ram is allocated? Does anyone have a clue as to why this is happening?