Is there a way to know the address before watchdog triggers
10-25-2019
08:35 PM
648件の閲覧回数
shijie_zheng
Contributor III
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I want to know Is there a way to know the address before watchdog triggers ?
I use MPC5476C Chip,and run freertos OS,
Watchdog occur while debugging the program,is there a register that can see the program address saved before the Watchdog INT is triggered?
Anyone help answer this question? Thank you.
1 返信
10-28-2019
11:31 PM
578件の閲覧回数
lukaszadrapa
NXP TechSupport
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
there's no such register but an option is to enable interrupt in SWT timer - in this case, first timeout triggers an interrupt and second timeout triggers a reset. In interrupt handler, you can read core register SRR0 which contains return address. This should help to find the root cause of your troubles.
Regards,
Lukas