NCACHE_REGION issue on RT1024

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

NCACHE_REGION issue on RT1024

548 Views
chhsu0229
Contributor II

When I use the RT1024 on my project, the error showed as following

1.JPG

The RAM setting of my project is follwong,

2 (1).JPG

I check an example of RT1024 EVK, the NACHE_REGION set through the external SDRAM and location is "0x81e0000', size is "0x200000".

3.JPG

Undoturanlly, there is no an external SDRAM on my project.

How can I set the 'NACHE_REGION' in the RAM setting on my board?

Thanks

Labels (2)
0 Kudos
Reply
1 Reply

466 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @chhsu0229 

Many thanks for your patience. Here is how. 

Lets say that you start with default memory map.As shown in the Properties> MCU settings of your project.

diego_charles_0-1708382314003.png

If SDRAM is not being used, you can delete this region. To use NCACHE region, you can split the a section of available SRAM. Below an example where I splited OCRAM and rename the new region as NCACHE_REGION.

diego_charles_1-1708382391989.png

This way the compiler can use NCACHE. If you want to verify that this works you can temporally tell the compiler to place global data to NCACHE region 

diego_charles_2-1708382609175.png

Then build your application and see that global data is getting placed to NCACHE region address. 

diego_charles_3-1708382668413.png

Please note, that this is demonstration, I can not guaratee could work on your side. Beware of the size limitation of the internal SDRAM, it may not fit your application. Also, there are more ways to place data in NCACHE region. Btw, here is an interesting application note that could help you  Using the i.MXRT L1 Cache

I hope this could be of help,

Diego

0 Kudos
Reply