AnsweredAssumed Answered

RT1064 RTWDOG

Question asked by Magnus Johansson on Mar 11, 2019
Latest reply on Mar 11, 2019 by jeremyzhou

Hello.

 

RT1064 RTWDOG, register CS, bit UPDATE has reset value of 0. How do I then disable it?

 

I've tried what's in the Reference Manual:

DisableInterrupts; // disable global interrupt
WDOG_CNT = 0xD928C520; //unlock watchdog
WDOG_CS &= ~WDOG_CS_EN_MASK; //disable watchdog
EnableInterrupts; //enable global interrupt

Which seems to set EN to 0 but it does continue counting.

 

I also tried this:

DisableInterrupts; // disable global interrupt
WDOG_CNT = 0xD928C520; //unlock watchdog
while(WDOG_CS[ULK]==0); //wait until registers are unlocked

But ULK never seem to become 1.

Outcomes