Teensy Boards(Teensy 4, 4.1, MMOD): Memory usage, what goes into ITCM, DTCM, OCRAM... #94038
-
I have a few questions about the memory management on the different Teensy boards. And how it may differ from how these boards work when programmed using Arduino IDE and Teensyduino. Wondering if others have already figured some of them out. Using Teensyduino builds the memory regions setup for a Teensy 4.1 by the loader file as:
Some of my questions include: a) How do I control what code and data are loaded into the ITCM and DTCM sections of memory and is the sizes of these two fixed? b) RAM (OCRAM versus OCRAM2) - On Teensyduino - the memory address starts at 0x20200000 full 512KB. You can It appears like with the zephyr build most of the stuff is in the memory range:0x20280000 c) FLASH ( 0x60000000) - As I mentioned on Teensyduino - most your code stored up here is copied down to d) External memory: On T4.1 you can have 16MB of external PSRAM soldered to the bottom of the board. (Actually Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @KurtE , |
Beta Was this translation helpful? Give feedback.
Hi @KurtE ,
The Teensy 4.1 board uses the i.MX RT1060 microcontroller from NXP. There is an application note from NXP that should be helpful, see AN13970 RT Series Memory Relocation in Zephyr.
Best regards