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,135件の閲覧回数
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 返信

1,013件の閲覧回数
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 件の賞賛