MIMXRT1010-EVK: NCACHE_REGION is not being used

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

MIMXRT1010-EVK: NCACHE_REGION is not being used

Jump to solution
2,869 Views
yokonav
Contributor III

Hi,

I am declaring a variable Buffer as non-cacheable. The variable Buffer should be inside the NCACHE_REGION. Why the NCACHE_REGION has 0% usage? it seems everything goes into the SRAM_DTC region which causes memory overflow. Is there any way to fix it?

// Code snippet
AT_NONCACHEABLE_SECTION_ALIGN(static uint8_t Buffer[4096], 4);

Compiler output:

Memory region Used Size Region Size %age Used
BOARD_FLASH: 200188 B 16 MB 1.19%
SRAM_DTC: 37624 B 32 KB 114.82%
SRAM_ITC: 0 GB 32 KB 0.00%
SRAM_OC: 0 GB 32 KB 0.00%
NCACHE_REGION: 0 GB 32 KB 0.00%

/Applications/MCUXpressoIDE_11.1.0_3209/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.1.0.201909161352/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: My_Project.axf section `NonCacheable' will not fit in region `SRAM_DTC'
/Applications/MCUXpressoIDE_11.1.0_3209/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.1.0.201909161352/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: region `SRAM_DTC' overflowed by 4856 bytes

Thanks,

Naveen

Tags (1)
0 Kudos
Reply
1 Solution
2,683 Views
alex_rodriguez
NXP Employee
NXP Employee

You have to change the Linker settings:

pastedImage_2.png

For more info please refer to the MCUXpresso RM and the following app note https://www.nxp.com/docs/en/application-note/AN12042.pdf .

-Alex

View solution in original post

1 Reply
2,684 Views
alex_rodriguez
NXP Employee
NXP Employee

You have to change the Linker settings:

pastedImage_2.png

For more info please refer to the MCUXpresso RM and the following app note https://www.nxp.com/docs/en/application-note/AN12042.pdf .

-Alex