请问stm32f072 stop模式下的WWDG怎么操作

2019-07-14 14:52发布

STM32F072,使用HAL库。按键中断进出STOP模式,不开启WWDG时,一切正常。开启WWDG窗口看门狗,使能中断,正常喂狗可进stop模式。但是从stop模式唤醒后,程序不正常。不知道从stop模式中唤醒后,该怎么操作WWDG。是重新初始化还是只清除计数值,菜鸟求助各位大大,不胜感激
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
6条回答
烈阳异丙醇
1楼-- · 2019-07-14 22:40
 精彩回答 2  元偷偷看……
初级少校
2楼-- · 2019-07-15 00:49
唤醒后优先初始化时钟和总线,然后喂狗,WWDG喂的时候,要注意窗口期,
daichuangs
3楼-- · 2019-07-15 01:52
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.
daichuangs
4楼-- · 2019-07-15 06:26
初级少校 发表于 2018-12-29 19:30
进入STOP模式前,最好先喂一口。避免WWDG在计时边缘,唤醒后,还没来得及初始化就Reset。
STOP模式唤醒后,时钟恢复成默认值,所以需要重新初始化。

when the cup needs  the 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 ?
lee_st
5楼-- · 2019-07-15 11:17
好好看看手册的
lee_st
6楼-- · 2019-07-15 14:01
 精彩回答 2  元偷偷看……

一周热门 更多>