2023-01-27 08:16 AM
Hi,
I am using the STM32L082 and looking for ways to have a watchdog implemented.
However during long periods of low power sleeps (e.g. 12 hours) I would like to freeze the IWDG downcounter.
Is this possible for the STM32L082?
Thanks
2023-02-06 04:04 PM
Hi @Jeroen deBuffel
Indeed, it is possible to freeze IWDG downcounter in low power mode. To do so, you need to enable Window Option. You may refer to the reference manual for more details. For code example, refer to A.13.2: IWDG configuration with window code example.
Note: after updating the prescaler and/or the reload/window value, there is no need to wait until RVU or PVU or WVU is reset before continuing code execution in case of low-power mode entry
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.