How to debug Watchdog reset with FreeRTOS, S32K144

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

How to debug Watchdog reset with FreeRTOS, S32K144

462件の閲覧回数
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 返信

442件の閲覧回数
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 件の賞賛