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