How can one load/debug programs in K70 DDR?

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

How can one load/debug programs in K70 DDR?

551 Views
pbarada
Contributor II

My application is/will be too large to fit into the internal flash of a K70 and want to load/boot the application (via some small boot-loader) in DDR and execute it from there.  To ease/speed development I want to allow loading/debugging the application in DDR using KDS.

How can I run a script after the target is connected and before the .elf is loaded - to setup the  MCG and DDR registers that initialize DDR?

Thanks in advance!

Tags (1)
0 Kudos
1 Reply

365 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Peter Barada,

Sorry in KDS I haven't find the debugger configure file like "init_kinetis.tcl",

so I think we can initlialize the DDR on application code.

There is a guide about "Debugging out of External RAM":

Relocating Code and Data Using the CW GCC Linker File for Kinetis   

->7) Debugging out of External RAM

pastedImage_2.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos