Resetting the IWDG on wakeup using HAL STM32L011K4T
Hi all,
I believe I am having a problem with the IWDG in my project. What's happening is that immediately after entering sleep mode the device wakes up again.
From the research I have done, it looks like this is inevitable, and in order to deal with it I need to check the wakeup state at the start of my code, and put it back to sleep if it was woken up by the watchdog instead of the WKUP pin being pulled high.
I am struggling to figure out how to do this within the HAL, I know it can be done, I have seen it in projects at work, but I am not a FW engineer, and that code was written with custom libraries.
Any help would be appreciated.
Cheers,
Luke