Hello
I'm new to teensy.
My project is written mostly in C++
I'm using LVGL library.
Now I'm running out of RAM1
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:388392, data:70840, headers:8732 free for files:7658500
RAM1: variables:137664, code:385304, padding:7912 free for local variables:-6592
teensy_size: RAM2: variables:12416 free for malloc/new:511872
But RAM2 seems to be free.
So I'm at the point where I have to optimize my code.
I've found this page that describes some memory possibilities
I have 2 questions:
1.
class XY {};
XY * a = new XY();
Where will be created the a object in RAM1 or in RAM2? (It seems like it is RAM1)
Is it possible to create objects in RAM2?
2. Is it possible to enhance RAM 1 or is the only way to move variables and array to RAM2 ?
Thank you in advance
Harry
I'm new to teensy.
My project is written mostly in C++
I'm using LVGL library.
Now I'm running out of RAM1
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:388392, data:70840, headers:8732 free for files:7658500
RAM1: variables:137664, code:385304, padding:7912 free for local variables:-6592
teensy_size: RAM2: variables:12416 free for malloc/new:511872
But RAM2 seems to be free.
So I'm at the point where I have to optimize my code.
I've found this page that describes some memory possibilities
Memory Mapping
Teensy PJRC WIKI . Contribute to TeensyUser/doc development by creating an account on GitHub.
github.com
I have 2 questions:
1.
class XY {};
XY * a = new XY();
Where will be created the a object in RAM1 or in RAM2? (It seems like it is RAM1)
Is it possible to create objects in RAM2?
2. Is it possible to enhance RAM 1 or is the only way to move variables and array to RAM2 ?
Thank you in advance
Harry