How to use Watchdog with S32K144

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Watchdog with S32K144

1,084 Views
palmerzhang
Contributor I

Hello

I want to use Watchdog of S32K144,but it does not work.I don't change the watchdog registers WDOG->CS and WDOG->TOVAL so that the watchdog should be initially active.The reset value of register WDOG->CS is 10100110000000 and WDOG->TOVAL has the predefined value 1024 and WDOG->CNT always 0. 

Then i found an aswer :The watchdog is disabled in system_S32K144.c file if DISABLE_WDOG macro is defined in system_S32K144.h header file.

I commented out code but no reset. Are there any additional settings ?

0 Kudos
1 Reply

345 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

If I change DISABLE_WDOG to 0 in system_S32K144.h, it works on my side.

It is indicated by LED D1, it flashes when the MCU resets.

Could you check LED D1?

 

Regards,

Daniel

0 Kudos