Attach debugger to elf file in u-boot.

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

Attach debugger to elf file in u-boot.

跳至解决方案
1,040 次查看
zwilcox
Contributor IV

I'm trying to attach the CodeWarrior debugger to an elf file loaded into RAM through u-boot on a P1021.

First I have the debugger attached using the CodeWarrior TAP JTAG:

pastedImage_1.png

Next I load the elf in uboot over TFTP:

pastedImage_4.png

go 0x1001b1c (where my __start is located at)

My program runs but the debugger never breaks :smileysad:

pastedImage_7.png

How can get the attached debugger to break upon entering the execution?

Thanks

Zach

标签 (1)
1 解答
763 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zachary Wilcox,

You could refer to the procedure of debugging Linux Kernel, please refer to the section "3.1 Debugging Linux Kernel at the entry point" in Debugging Linux Kernel with CodeWarrior for PA to set breakpoint at the entry point, boot your program and stop it at the entry point, then continue to debug your program before and after the MMU is enabled.


Have a great day,
TIC

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

在原帖中查看解决方案

2 回复数
764 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Zachary Wilcox,

You could refer to the procedure of debugging Linux Kernel, please refer to the section "3.1 Debugging Linux Kernel at the entry point" in Debugging Linux Kernel with CodeWarrior for PA to set breakpoint at the entry point, boot your program and stop it at the entry point, then continue to debug your program before and after the MMU is enabled.


Have a great day,
TIC

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

763 次查看
zwilcox
Contributor IV

Thank you sir.  That did the trick. 

0 项奖励
回复