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

LAUNCHXL-CC1352R1: 如何整合watchdog進入simple_peripheral和simple_central

Part Number:LAUNCHXL-CC1352R1Other Parts Discussed in Thread:CC2640R2F

SDK: simplelink_cc13xx_cc26xx_sdk_6_10_00_29

想要把watchdog整合到simple_peripheral和simple_central 中

請問有示範的例子可以參考嗎? (已經參考過單獨的watchdog範例)

目前初步想法是:

在main()中再產生另一個task, 裡面是用來Watchdog_clear的定時clock

並且將此clock task的priority設定成1, 再將simple_peripheral task的priority設定成2

請問M3是否會定時被watchdog喚醒, 而失去了在沒有BLE傳輸下進入power saving的好處?

如果是如此, 應該如何加入,才能確保watchdog只有在BLE傳輸的時間才會工作?

是在simple_peripheral task的for loop中間, event之前嗎? 煩請指點, 謝謝

  // Application main loop
  for (;;)
  {

   Watchdog_clear();

   uint32_t events;

    events = Event_pend(syncEvent, Event_Id_NONE, SP_ALL_EVENTS,
                        ICALL_TIMEOUT_FOREVER);

Kevin Qiu1:

Hugh 说:請問M3是否會定時被watchdog喚醒, 而失去了在沒有BLE傳輸下進入power saving的好處?

watchdog不会在standby模式运行

关于如何添加watchdog,参考下面两个帖子:

https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_Bluetooth_cc2642r-watchdog-reset-during-continuous-scan

https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_Bluetooth_rtos-cc2640r2f-rtos-cc2640r2f-watchdog-design

,

Hugh:

https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_Bluetooth_rtos-cc2640r2f-rtos-cc2640r2f-watchdog-design

"2.Call Watchdog_clear() when CC2640R2F is about to go to Standby Mode. Maybe TI Engineer can help with this"

"2. As long as the event for clearing the watchdog is called, then the watchdog will be clear. However, when you wake up from standby, the watchdog will continue countering from right before it entered standby. "

此篇最後提到, 將 Watchdog_clear()設在M3要進入Standby之前,

但問題是, 既然已經在standby前就clear watchdog了

為何還會遇到watchdog will continue countering from right before it entered standby?

,

Kevin Qiu1:

我猜这里指的是清除以后重新load计数器值

赞(0)
未经允许不得转载:TI中文支持网 » LAUNCHXL-CC1352R1: 如何整合watchdog進入simple_peripheral和simple_central
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1