LPC540 Run Application from SDRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC540 Run Application from SDRAM

393 Views
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 Kudos
Reply
1 Reply

362 Views
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 Kudos
Reply