Why watchdog does not start up?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why watchdog does not start up?

662 次查看
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?

标签 (1)
标记 (3)
0 项奖励
1 回复

420 次查看
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 项奖励