Attach debugger to elf file in u-boot.

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

Attach debugger to elf file in u-boot.

ソリューションへジャンプ
1,074件の閲覧回数
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 解決策
797件の閲覧回数
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 返答(返信)
798件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

797件の閲覧回数
zwilcox
Contributor IV

Thank you sir.  That did the trick. 

0 件の賞賛
返信