MCUXpresso / mimxrt1064 SRAM_OC not used, or causing program failure upon startup

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

MCUXpresso / mimxrt1064 SRAM_OC not used, or causing program failure upon startup

1,120 次查看
tamir_michael
Contributor IV

Hello,

I need to add a rather large RAM buffer to my application (about 600KB), but it should still fit easily into SRAM_OC. Unfortunately, however, it's not being utilized at all by the linker for an unknown reason, which yields a linker error:

pastedImage_1.png

I am used to linkers trying to resolve allocation issues automatically, but this is not the case here.

Do I need to force my buffer into SRAM_OC using a compiler directive? Why does this not happen automatically?

After changing the order of the SRAM regions, placing SRAM_OC on top, I get this:

PROGRAM_FLASH: 61336 B 4 MB 1.46%
SRAM_OC: 661312 B 768 KB 84.09%
SRAM_DTC: 0 GB 128 KB 0.00%
SRAM_ITC: 0 GB 128 KB 0.00%

If I want to explicitly place something in DTC, I must assume this has to be done with a compiler directive...?

Thanks in advance.

标签 (1)
0 项奖励
1 回复

998 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Tamir Michael

Please check the following links:

Placing specific functions into RAM blocks 

https://community.nxp.com/thread/389110 

Also, in the project properties, you can find the memory that is used for heap, stack, and bss, you can distribute them as you need it.

Hope this information helps.

Best regards

Jorge Alcala

0 项奖励