WWDG watchdog resets system when being refreshed
--------
EDIT: I added a minimal example project, 2 posts below.
--------
Using the WWDG on STM32L07, because I need the EWI interrupt it offers to prevent the reset in certain situatons.
(Edit: orig. config code + some obsolete explanation removed. The minimal example 2 posts below is more readable)
APB1 is at full 32MHz, which should, using max prescaler and WWDG:CR:T bits, yield a timeout of ca. 65ms.
I am setting the window low value same as refresh - according to the manual, figure 192, that should make the "refresh allowed" part the largest possible. I don't need/want a lower bound.
Refreshing the counter regularly in much less than that time.
Now, yet, I see a constantly resetting MCU.