How to debug Watchdog reset with FreeRTOS, S32K144

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to debug Watchdog reset with FreeRTOS, S32K144

447 Views
hoona75
Contributor I

Hello All,

 

How to debug watchdog reset issue with FreeRTOS on S32K144.

If we get the information of call stack of each task when watchdog happens, it will be helpful. 

Any idea or guide are welcome. 

 

Thank you.

0 Kudos
1 Reply

427 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @hoona75 

I have never used this but I saw somewhere that an option to get more details is to add a logging to systick interrupt. In the systick interrupt, you can record program counter of instructions it interrupts. Store these addresses somewhere to RAM buffer in a loop.
Then you can add short code somewhere to startup files (before it touches the RAM) which will check source of reset. If it is watchdog, you can enter endless loop, so you can attach a debugger and review the RAM buffer. Here you should see if the problem is related to some tight loop.

Regards,
Lukas

0 Kudos