How to enable ocram for Cortex-m4 programming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable ocram for Cortex-m4 programming

937 Views
双朋赵
Contributor III

Hi Shuyang Guan,

when programming with Cortex-M4 in i.MX8x, we found that the total size of TCM is 256k,
this size is too small to meet our some product application requirements.
so we plan to enable ocram for Cortex-M4, take i.MX8x DualX for example,
we can use TCM as code section and use ocram as data section, please help us to check whether it is available or not .

Thanks

0 Kudos
2 Replies

807 Views
art
NXP Employee
NXP Employee

From the hardware point of view, the answer is: yes, it is possible to use TCM for code section and OCRAM for data section in i.MX8X Cortex-M4 programming. For example, please refer to the Table 2-20 "CM4_0 memory map" of the i.MX 8DualX/8DualXPlus/8QuadXPlus Applications Processor Reference Manual Rev.E document, available on the processor's Documentation web page:

https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i.mx-applications-proces...

In particular, it shows the 256kB OCRAM alias in the 0x21100000 to 0x2113FFFF address range of the CM4 core.

Best Regards,
Artur

0 Kudos

807 Views
shuyang_guan
NXP Employee
NXP Employee

Hello, Shuangpeng,

The same thread has created by Rui. See https://community.nxp.com/thread/517698   as reference.

BR

Shuyang

0 Kudos