Is there a way to know the address before watchdog triggers

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to know the address before watchdog triggers

222 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Reply

152 Views
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 Kudos