AnsweredAssumed Answered

How to use watchdog COP

Question asked by Albert Zhou on Nov 19, 2018
Latest reply on Nov 27, 2018 by Albert Zhou

I tried to use COP watchdog but it does not work. somebody can tell me why? I used UART command to get it in a while loop, the system get into a hanging state -no pulse output.

Here is my code:

 

void ResetWatchDog(void)
{
SIM->SRVCOP =0x00000055U;
SIM->SRVCOP =0x000000AAU;
}

 

int main(void)
{

SIM->COPC =0x0000003CU;  //enable COP watchdog set to 1.024 second, 1KHz as clock source

...

...

....

while(1)

{

   pulse(toggle);

   ResetWatchDog();

 .....

}

}

 

I not know where to get the COP setup correctly. 

 

 

Albert

Outcomes