how to configure I-TCM, D-TCM and OCRAM via FlexRAM before booting

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

how to configure I-TCM, D-TCM and OCRAM via FlexRAM before booting

2,256 Views
li-chinwang
Contributor II

i.MX default configuration in flexram

I-TCM :128KB

D-TCM:128KB

OCRAM:256KB

If I need to configure D-TCM 384KB fo emwin usage, what I should do?

I see there is example of flexram to configure the I-TCM, D-TCM and OCRAM.

How can setup like this before booting

I-TCM :128KB

D-TCM:384KB

OCRAM:0KB

#define m_interrupts_start 0x00000000
#define m_interrupts_size 0x00000400

#define m_text_start 0x00000400
#define m_text_size 0x0001FC00

#define m_data_start 0x20000000
#define m_data_size 0x00020000

#define m_data2_start 0x20200000
#define m_data2_size 0x00040000

0 Kudos
Reply
4 Replies

1,766 Views
li-chinwang
Contributor II

Dear Sir:

                I have read AN12077. There are two mode. static configuration and run time configuration.

                I have new project which customer need no-XIP mode.

                In the other word, it need to move all image to ITCM before booting.

                ITCM also need to be configured 256Mb.

                In this case run time mode will not suitable for this case right?

                Only program e-fuse for static mode?

       

0 Kudos
Reply

1,765 Views
Yuri
NXP Employee
NXP Employee

Hello,

  One solution is to use fuse configuration.

But, also, it is possible to write own primary (tiny) boot loader, which 

can be boot by the boot ROM and perform memory initialization in order

to load main application.  

Regards,

Yuri.

0 Kudos
Reply

1,766 Views
Yuri
NXP Employee
NXP Employee

Hello,

   Application Note AN12077 (Using the i.MX RT FlexRAM) describes details how to configure

FlexRAM. It is needed to use fuse configuration, if memory should be set before system booting. 

    https://www.nxp.com/docs/en/application-note/AN12077.pdf 


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,766 Views
jmesc_
Contributor II

Dear Sir,

Di you read Application Note AN12077, it explain both mode of using FlexRam configuration ?

regards

0 Kudos
Reply