This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F 看门狗问题

Expert 2290 points
Other Parts Discussed in Thread: CC2640R2F

CC2640R2F 看门狗配置后什么异常才会导致看门狗复位?

如果在程序中使用while(1);卡死程序会导致看门狗复位吗?

  • 会,只要在死循环里出不来,无法喂狗,就会复位
  • Watchdog_Handle whandle;
    void Init_ Watchdog(void)
    {
    Watchdog_Params params;
    uint32_t tickValue;
    Watchdog_init();
    Watchdog_Params_init(&params);
    params.callbackFxn = watchdogCallback;
    whandle = Watchdog_open(0, &params);
    tickValue = Watchdog_convertMsToTicks(whandle, 2500);
    Watchdog_setReload(whandle, tickValue);
    }

    void watchdogCallback(uintptr_t handle)
    {
    Watchdog_clear(whandle);
    }

    我是按照上面配置看门狗的, 用while(1);卡死测试, 但是没有复位, 这样配置看门狗有问题吗?