Custom elf debug in CodeWarrior.

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

Custom elf debug in CodeWarrior.

跳至解决方案
1,829 次查看
dmitrymarchenko
Contributor I

Hello! Can someone help me understand how i can debug custom *.elf file from CodeWarrior?

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,587 次查看
addiyi
NXP Employee
NXP Employee

Please take a look on this doc. It is not for PA, but it is applicable.

Adrian

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,587 次查看
marius_grigoras
NXP Employee
NXP Employee

Hi,

The answer is depends :smileyhappy: - is not only an answer here and I'll try to explain you why:

1. You can have a simple bare-metal application downloading in RAM that is also compiled for RAM addresses - this can be easily imported and use the download target set up the default RAM initialization file..and that's it.

2. You can have a more complex bare-metal application (like the u-boot) which is compiled to be written in a flash (contains NOR addresses for example) and then it relocates itself to RAM. In this case is not so simple to debug it, need to attach to it and to make sure using simple debug run-control operations (like step instruction) to not break the target.

Which is your flow? And what CW are you using? (PA, ARMv8, ARMv7..) ?

Thank you,

Marius

0 项奖励
回复
1,587 次查看
dmitrymarchenko
Contributor I

Hi, Marius!

I'am using CW PA and MPC8572DS board. I have an elf application wich starts from uboot. I have sources if this app, and i need to debug this app from sources using breakpoints etc. Where i can find tutorial wich contains "step by step" instructions?

Thanks.

0 项奖励
回复
1,588 次查看
addiyi
NXP Employee
NXP Employee

Please take a look on this doc. It is not for PA, but it is applicable.

Adrian

0 项奖励
回复