Other Parts Discussed in Thread: CC2530
Dears:
在CC2530中打开看门狗后,设备一直重启,如何解决?
#ifdef WDT_IN_PM1
/* If WDT is used, this is a good place to enable it. */
WatchDogEnable( WDTIMX );
#endif
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.
我也碰到了这个问题。 我使用的是 zigbee 3.0.2 协议栈,然后在文档中建议位置:OSAL.c , osal_start_system 中 osal_run_system(); 后面加上了喂狗:
{
osal_run_system();
// hhh, 2018.11.15 watchDog
#ifdef WDT_IN_PM1
WD_KICK();
#endif
现在现象是:关闭宏(不启动看门狗),程序正常; 打开宏,则程序没有反应(应该是看门狗在不断重启)。
具体使用,和这个一样: