How to move code from flash to sram

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

How to move code from flash to sram

跳至解决方案
1,206 次查看
Wayne2
Contributor II

Hi NXP team

I want to move some high frequency functions from flash to the sram, in order to running in the sram which can reduce the cpu loading.

But I found it only can modify it in the settings, if I choose the "Link application to RAM", it will push all the flash code to the ram.

If I use the "Extra linker script input sections", I don't know how to specify a cpp file and then compile .o file move it to the sram.

I also found the .ld file was generated, and couldn't edit.

Could you tell me how to modify the code?

 

Wayne2_0-1670850485385.png

Thanks!

标记 (1)
0 项奖励
回复
1 解答
1,181 次查看
jay_heng
NXP Employee
NXP Employee

You can try MCUX FreeMarker, it can help you relocate part of object files to any RAM

MCUXpresso IDE下高度灵活的FreeMarker链接文件模板机制

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,182 次查看
jay_heng
NXP Employee
NXP Employee

You can try MCUX FreeMarker, it can help you relocate part of object files to any RAM

MCUXpresso IDE下高度灵活的FreeMarker链接文件模板机制

0 项奖励
回复
1,184 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Wayne2 

Please look into the following community post: https://community.nxp.com/t5/i-MX-RT/Relocating-code-from-FLASH-to-RAM-All-file/td-p/1220584

I believe it will prove very useful for your inquiry.

 

BR,

Edwin.

0 项奖励
回复