AnsweredAssumed Answered

kl26 看门狗不起作用

Question asked by bi shihao on Aug 11, 2015

今天用KSDK2.0测试看门狗定时器,断点查看看门狗定时器不起作用,在while中调用COP_DRV_IsRunning(0),返回0,大侠给指点一下。

#include "board.h"

#include "fsl_cop_driver.h"

 

 

int main(void)

{

    cop_config_t user_cop;

   

    hardware_init();

    config_peripheral();

   

    user_cop.copClockSource = kCopLpoClock;

    user_cop.copTimeout = kCopTimeout_short_2to10_or_long_2to18;

    user_cop.copWindowModeEnable = false;

   

    COP_DRV_Init(0,&user_cop);

    while(1);

}

Outcomes