Is there a way to know the address before watchdog triggers

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

Is there a way to know the address before watchdog triggers

544件の閲覧回数
shijie_zheng
Contributor III

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)
タグ(1)
0 件の賞賛
返信
1 返信

474件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

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.

pastedImage_1.png

pastedImage_2.png

Regards,

Lukas

0 件の賞賛
返信