Custom elf debug in CodeWarrior.

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

Custom elf debug in CodeWarrior.

ソリューションへジャンプ
1,828件の閲覧回数
dmitrymarchenko
Contributor I

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

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,586件の閲覧回数
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,586件の閲覧回数
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,586件の閲覧回数
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,587件の閲覧回数
addiyi
NXP Employee
NXP Employee

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

Adrian

0 件の賞賛
返信