AnsweredAssumed Answered

Why watchdog does not start up?

Question asked by Thooman Wang on Jun 16, 2014
Latest reply on Jun 16, 2014 by Mark Butcher

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?

Outcomes