cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H755 WWDG interrupts

iTTy
Senior

Hy every one,
I'm facing up the WWDG usage on a STM32H755 MCU.
I noticed that WWDG peripheral has 2 interrupts: normal one and the early wake-up EWI one.
What is the difference?
Manual is not clear!

Thanks in advance

4 REPLIES 4
Pavel A.
Evangelist III

What is the "normal" interrupt? where have you seen it?

AScha.3
Chief III

Hi,

manual is ok.

The "normal" action is on counting down to 0x3F -> reset cpu.

Just, if enabled, at 0x40 you get the early wake-up INT : now you can decide, to stop/prevent the reset for now, by writing/reload the WWDG counter; maybe a time consuming action, like writing to a sd-card, needs unknown millisecs more, so by using a flag you can stop the WWDG reset for some time; after this is finished, clear your flag and dont write the WWDG counter, so it will reset the cpu, if no reload the WWDG counter happens in time.

So the early wake-up INT can be the (only) way, to stop the WWDG - if you need this.

If you feel a post has answered your question, please click "Accept as Solution".
iTTy
Senior

@Pavel A. and @AScha.3 , thanks for yours reply.

Regarding the two interrupt:

WWDG_NVICinterrupt.png

this one is the "normal" one, which is also reported in the NVIC1 section.

WWDG_EWIinterrupt.png

this is the EWI.

@AScha.3 , so these interrupts basically differ for 1 count, right?
But with the NVIC one reset has already been initiated, there are other functional differences?
If I just need to set a variable for WWDG detection (after reset), could I use this one.

>so these interrupts basically differ for 1 count, right?

Right.  But the early is just an INT , the "normal" is reset/restart.

> If I just need to set a variable for WWDG detection (after reset), could I use this one.

What to detect then ?

If you feel a post has answered your question, please click "Accept as Solution".