How to debug Watchdog reset with FreeRTOS, S32K144

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to debug Watchdog reset with FreeRTOS, S32K144

452 次查看
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 项奖励
1 回复

432 次查看
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 项奖励