CYBT 343026 Watchdog 的使用

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
CaLi_4592466
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

在文档API-REF-20706-A2_Bluetooth.pdf 文档中 描述 Watchdog 的使用方法比较简单,另外 如果处于DEEPSLEEP 的模式下,Watchdog 怎么使用?是否有watchdog DEMO的 程序提供,更详细的文档说明?

0 点赞
1 解答
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

WICED中watchdog开放的功能比较简单,底层会喂狗,不需要应用层处理。

下面的blog是719中的介绍,和706中的一样,可以看下:CYW20719 and CYW20735 Clocks, RTC, WatchDog Timer, Application Timer and PWM

在原帖中查看解决方案

0 点赞
5 回复数
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

WICED中watchdog开放的功能比较简单,底层会喂狗,不需要应用层处理。

下面的blog是719中的介绍,和706中的一样,可以看下:CYW20719 and CYW20735 Clocks, RTC, WatchDog Timer, Application Timer and PWM

0 点赞

1.在开机过程中,会自动enable watchdog ?

2.另外deep sleep 模式下,设备也会自动喂狗?

3.如果我在程序中进行while(1) 下进行打印,会触发watchdog 的reset 系统吗?

0 点赞
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

1. 是的,watchdog会自动enable

2. SDS模式下,watchdog会关掉

3. 应该会的,不建议使用while(1)循环,如果有任务要处理,请放在timer的callback中。

0 点赞

3. 应该会的,不建议使用while(1)循环,如果有任务要处理,请放在timer的callback中。

因为是指debug 的情况下,所以我们会对一些case 情况下会 进行blocking  while循环打印, 但是我没有发现系统进行reset 操作。

0 点赞
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

请避免使用while(1)的循环,我们之前测试过如果系统停留在delay函数当中是会触发watchdog的。while循坏,有可能底层还是执行了喂狗操作。

0 点赞