How to debug code in external dynamic ram

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

How to debug code in external dynamic ram

453 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Tue Aug 07 23:58:31 MST 2012
[SIZE=2][FONT=Tahoma]LPC1778: For an upcomming project we will be using a loader in the internal flash to read an application code image from serial flash into both internal sram and external dynamic ram.

Obviously, the flash loader must initialise dynamic ram and program the MPU (otherwise code will not execute in SDRAM). This is fine and well understood.

However, debugging? We want to be able to use the LPCXpresso integrated debugger to load an elf (aka axf) directly to sram/dynamic ram and debug.

With previous ARM projects the tools allowed for a 'debugger initialisation' file to be 'executed' prior to any attempt to download code to the target. This contained lines to set memory (peripheral registers), wait for memory (register) reads to match a mask, etc.

This was used to setup (among other things) the dynamic ram -- and for this project it will have to setup the MPU as well.

How would this be done with the LPCXpresso IDE? What script commands are available?

Any hints to documentation, faqs, previous threads, articles will be much appreciated.

I've heard of the topic 'launch configuration'; can anyone point me at info on this?

Thanxs

[/FONT][/SIZE]
0 Kudos
Reply
0 Replies