AnsweredAssumed Answered

WatchDog S32k144

Question asked by lohrsistemas on Feb 22, 2017
Latest reply on Mar 10, 2017 by lohrsistemas

I try to enable WDT follow bellow:     

 

__disable_interrupt(); // disable global interrupt
      WDOG->CNT = 0xD928C520; //unlock watchdog
      while(((WDOG->CS & WDOG_CS_ULK_MASK) >> WDOG_CS_ULK_SHIFT) != 0U); //wait until registers are unlocked
      WDOG->TOVAL = 256; //set timeout value
      WDOG->CS = WDOG_CS_EN(1) | WDOG_CS_CLK(1) | WDOG_CS_INT(0) |  WDOG_CS_WIN(0) | WDOG_CS_UPDATE(0);
      while(((WDOG->CS & WDOG_CS_RCS_MASK) >> WDOG_CS_RCS_SHIFT) != 0U); //wait until new configuration takes effect
      __enable_interrupt(); // enable global interrupt

 

But it never causes a MCU reset.

Any idea what's going on?

 

Thanks

Outcomes