[MIMXRT1170] SRAM_DTC_cm7 almost full – how to use SRAM_OC1 instead?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[MIMXRT1170] SRAM_DTC_cm7 almost full – how to use SRAM_OC1 instead?

1,362件の閲覧回数
mounsef
Contributor I

Hi everyone,

I'm working with the MIMXRT1170 EVK using MCUXpresso IDE. In my application, I generate a large array which is used for signal modulation.

The problem is that when I build the project, I see that SRAM_DTC_cm7 is almost full (99.93%), while other memory regions like SRAM_OC1 are completely unused.

This is causing memory overflow issues, and I would like to know how I can store my large array (or other buffers) in a different memory region like SRAM_OC1 to avoid filling up SRAM_DTC_cm7.

Any help or suggestions would be really appreciated.

Thanks

ラベル(3)
0 件の賞賛
返信
4 返答(返信)

1,314件の閲覧回数
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @mounsef ,

Thanks for your interest in NXP MIMXRT series!

For your application scenario, I believe this feature of FlexRAM is helpful. It can adjust the size of OCRAM to fit your image distribution. Please kindly refer to this AN for details!

Also, you can modify the linkscripts to put some code/data or some files as a whole into a specific RAM space, you can refer to the wifi_webconfig example in SDK, please pay attention to its linkscripts folder.

Hope it helps!

Best regards,
Gavin

0 件の賞賛
返信

1,300件の閲覧回数
mounsef
Contributor I

Hi @Gavin_Jia,

Thanks a lot for your help!

I’m new to NXP and linker scripts — could you please point me to some resources to learn more? Also, where exactly can I find the linkscripts folder in the wifi_webconfig example?

I’m using the MIMXRT1170-EVK — any specific modifications I should consider for this board?

Thanks again!

Best,
Mounsef

0 件の賞賛
返信

1,272件の閲覧回数
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @mounsef ,

Please help me to check these files in this demo:

Gavin_Jia_0-1747801855325.png

 

Their purpose is to manage the IDE-generated *.ld files so that fsl_flexspi.o and mflash_drv.o are put into OCRAM in the final generated *.ld file. You can emulate this approach to manage your project.

After that, you can use the IDE's image info feature to see the distribution of memory and code.

Gavin_Jia_1-1747802037112.png

 

Best regards,
Gavin

 

0 件の賞賛
返信

1,267件の閲覧回数
mounsef
Contributor I

Hi @Gavin_Jia ,

I’ve already copied the linkerscript file to my project and will share the memory usage captures before and after the modification.

Before : 

mounsef_2-1747815476426.png

 

After : 

mounsef_1-1747815430828.png

 

Just to mention: my project contains a large uninitialized global array that is filled later within functions.

Thanks again for your help,
Mounsef

0 件の賞賛
返信