How to run an example project from board-SDRAM

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

How to run an example project from board-SDRAM

710 Views
Sebastiano65
Contributor I

Hi, I've a LPC54628 board. I'm not able to run an example project (already available in sdk) in the board-SDRAM.

While in the internal memory everything works.

Any advice?

Labels (2)
0 Kudos
Reply
2 Replies

705 Views
frank_m
Senior Contributor III

There is a setting "Link application to RAM" in C/C++build->Settings, which you might try.

I am not familiar with the method that MCUXpresso supports for RAM execution, but know of other IDEs supporting a direct load via the debugger. Otherwise, the code is flashed, and copied to RAM at runtime.

Anyway, I suppose this method will not work for many projects. First, the RAM is much smaller than the Flash, so the code size is quite limited. And second, code than needs to share the RAM with data and stack.

I used RAM-based execution only for special purposes, like flashing routines in a bootloader with single-bank Flash.

0 Kudos
Reply

695 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Sebastiano,

I suppose that you do not initialize the MPU module, pls refer to an12423.pdf

 

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

Hope it can help you

BR

Xiangjun Rong

0 Kudos
Reply