How to run an example project from board-SDRAM

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

How to run an example project from board-SDRAM

1,064 次查看
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?

标签 (2)
0 项奖励
回复
2 回复数

1,059 次查看
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 项奖励
回复

1,049 次查看
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 项奖励
回复