How to run an example project from board-SDRAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to run an example project from board-SDRAM

1,067件の閲覧回数
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,062件の閲覧回数
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,052件の閲覧回数
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 件の賞賛
返信