阿莫西林 发表于 2017-6-8 22:49:43

stm32f072 stop模式下的WWDG

STM32F072,使用HAL库。按键中断进出STOP模式,不开启WWDG时,一切正常。开启WWDG窗口看门狗,使能中断,正常喂狗可进stop模式。但是从stop模式唤醒后,程序不正常。不知道从stop模式中唤醒后,该怎么操作WWDG。是重新初始化还是只清除计数值,菜鸟求助各位大大,不胜感激

waiman-156411 发表于 2017-6-8 22:49:44

进入STOP模式前,最好先喂一口。避免WWDG在计时边缘,唤醒后,还没来得及初始化就Reset。
STOP模式唤醒后,时钟恢复成默认值,所以需要重新初始化。

ataudio 发表于 2017-6-27 16:56:27

看门狗随后要用在073上,同问。

waiman-156411 发表于 2017-6-27 22:19:26

唤醒后优先初始化时钟和总线,然后喂狗,WWDG喂的时候,要注意窗口期,

hellonsn 发表于 2018-7-27 10:24:50

When CPu wakes up from STOP mode by the WWDG ewi interrupter,why does it cause a system reset quickly ?

How do you slove this problem ? thanks a lot.

hellonsn 发表于 2018-7-27 10:32:49

waiman-156411 发表于 2017-6-8 22:49
进入STOP模式前,最好先喂一口。避免WWDG在计时边缘,唤醒后,还没来得及初始化就Reset。
STOP模式唤醒后, ...

when the cup needsthe WWDG ewi wakeup , it is already in the edge of the system reset.
So i guess it does not work to feed the wwdg before entering stop mode.

However , what about feeding the wwdg before quiting the STOP Mode ?

页: [1]
查看完整版本: stm32f072 stop模式下的WWDG