WWDG HAS an EWI (early wakeup interrupt) that we can use ? the question is can we refresh the downcounter in the EWI interrupt handler function to avoid system reset ?? I tried to do it ,but seems it doesn't work , and after the interrupt , the WWDG triggerred a system reset even the downcounter has been refreshed in the interrtupt handler. So could anyone give some advice on that situation?? thanks a lot. |
评分
查看全部评分
.sorry I Cann't English ,I'm from China
评分
查看全部评分
建议您先看下IWDG 后进行比较
hello, I set the window value = 0x7f , which is the max value , and set T[0-6] = 0X7F as well , when the counter reaches 0x40 , triggering a EWI interrupt, my question is in the EWI interrupt handler , is it possible to refresh the T counter ?
thanks.
hello, I set the window value = 0x7f , which is the max value , and set T[0-6] = 0X7F as well , when the counter reaches 0x40 , triggering a EWI interrupt, my question is in the EWI interrupt handler , is it possible to refresh the T counter ?
thanks.
In some applications, the EWI interrupt can be used to manage a software system check
and/or system recovery/graceful degradation, without generating a WWDG reset. In this
case, the corresponding interrupt service routine (ISR) should reload the WWDG counter to avoid the WWDG reset, then trigger the required actions.
But when I reload the WWDG counter , a system reset happened after the interrupt.
hello,I want to see your code how to used.for example:
评分
查看全部评分
不可以的!,这样做可能会出现WWDG误判。
在"主程序喂狗论"中,最"强有的理论依据"就是---"程序跑飞了可是中断不一定会死" (中断一般都有自己固定不变的中断向量地址,这样即使主程序飞,中断也能正确地跳入自己的轨道继续运行.)
我没懂你说的中断是哪种中断.但是你可以修改 看门狗回调函数。不知道我理解你题意了没。
抱歉,刚刚没看到你说的EWI,发送出去才看到了
这样是可以的,清除标志位后等待一下标志位真正清除,然后再喂狗,退出中断。保证中断只执行一次。
评分
查看全部评分
我理解的意思是,他要用EWI interrupt,但是在EWI interrupt产生之前喂狗了。最后EWI interrupt中断产生后,导致系统复位。
评分
查看全部评分