LPC540 Run Application from SDRAM

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

LPC540 Run Application from SDRAM

178 次查看
bzdan
Contributor I

Hello,

I'm using LPC54S018-EVK evaluation board with LPC540 and MCUXPresso IDE.

I'm currently exploring the spifi_polling_transfer demo from the SDK and have successfully run the application from SRAMX. However, due to limited SRAM space in my main application, I'm interested in running the application from SDRAM instead. I've searched through the available resources but haven't found any examples demonstrating how to achieve this. Can anyone confirm if it's possible to run an application from SDRAM on this platform, or provide guidance or examples on how to do so?

0 项奖励
1 回复

147 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the SDRAM is RAM,the code is lost after power off, so you have to save code and constant data in spifi flash.

If you want to want to save code in SDRAM and run the code in SDRAM, you have to initialize the SDRAM, then copy the code from spifi flash to SDRAM. If you run the code, I suppose that you have to configure the MPU module.

Pls refer to the AN12432.pdf

https://www.nxp.com.cn/docs/en/application-note/AN12423.pdf

Hope it can help you

BR

XiangJun Rong

0 项奖励