How can one load/debug programs in K70 DDR?

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

How can one load/debug programs in K70 DDR?

1,090 次查看
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!

标记 (1)
0 项奖励
回复
1 回复

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