Why watchdog does not start up?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why watchdog does not start up?

804件の閲覧回数
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 返信

562件の閲覧回数
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 件の賞賛
返信