Why watchdog does not start up?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why watchdog does not start up?

626 Views
thoomanwang
Contributor V

void init_dog(void)

{

  //SIM_COPC = SIM_COPC_COPT_MASK | SIM_COPC_COPW_MASK | SIM_COPC_COPCLKS_MASK;

  //SIM_COPC = 0x2 | 0x0 | 0x1;

  SIM_COPC = (uint32_t)((SIM_COPC & (uint32_t)~(uint32_t)(

              SIM_COPC_COPT(0x01) |

              SIM_COPC_COPW_MASK |

              0xF0U

             )) | (uint32_t)(

              SIM_COPC_COPT(0x02) |

              SIM_COPC_COPCLKS_MASK

             ));

}

I need to be 60 seconds do not feed dog system automatically resets, how should I define the watchdog timeout?

Labels (1)
Tags (3)
0 Kudos
1 Reply

384 Views
mjbcswitzerland
Specialist V

Hi

I believe the longest watchdog time that you can set on the KL02 is 1.024s:

SIM_COPC = 0x0000000c;

Regards

Mark

0 Kudos