TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310: CC1310在15.4协议栈下看门狗工作异常

Part Number:CC1310

使用CC1310,15.4协议栈,使用跳频模式,不开看门狗工作是正常的。打开看门狗功能,从机一连上主机后,程序就复位了,请TI的工作人员帮忙看下是什么原因?

初始化:

uint8_t watch_dog_init(void)
{

    Watchdog_Params params;
    uint32_t reloadValue;

    Watchdog_init();

/* Open a Watchdog driver instance */
Watchdog_Params_init(&params);
params.callbackFxn = (Watchdog_Callback) watchdogCallback;
params.debugStallMode = Watchdog_DEBUG_STALL_ON;
params.resetMode = Watchdog_RESET_ON;

watchdogHandle = Watchdog_open(Board_WATCHDOG0, &params);
if (watchdogHandle == NULL) {
/* Error opening Watchdog */
while (1) {}
}

/*
* The watchdog reload value is initialized during the
* Watchdog_open() call. The reload value can also be
* set dynamically during runtime.
*
* Converts TIMEOUT_MS to watchdog clock ticks.
* This API is not applicable for all devices.
* See the device specific watchdog driver documentation
* for your device.
*/
reloadValue = Watchdog_convertMsToTicks(watchdogHandle, 10000);

/*
* A value of zero (0) indicates the converted value exceeds 32 bits
* OR that the API is not applicable for this specific device.
*/
      if (reloadValue != 0) {
      return Watchdog_setReload(watchdogHandle, reloadValue);
      }
return 1;
}

2.5S清一次看门狗

Watchdog_clear(watchdogHandle);

Kevin Qiu1:

你是在sensor还是collector中使用的看门狗,改变清看门狗的时间是否还会出现复位现象?

,

Jiawei Zhang:

是sensor端,喂狗时间慢慢减短到几十mS,还是不行,每次都是回调一改变连接状态后,设备就直接复位了!

,

Kevin Qiu1:

上面代码只涉及看门狗部分,看起来没什么问题

只是在跳频模式有问题还是所有模式都一样?你在例程中还修改了哪些部分?只添加看门狗试一下

赞(0)
未经允许不得转载:TI中文支持网 » CC1310: CC1310在15.4协议栈下看门狗工作异常
分享到: 更多 (0)