MIMXRT1010-EVK: NCACHE_REGION is not being used

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MIMXRT1010-EVK: NCACHE_REGION is not being used

跳至解决方案
2,512 次查看
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

标记 (1)
0 项奖励
1 解答
2,326 次查看
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

在原帖中查看解决方案

1 回复
2,327 次查看
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