Is it true that I cannot schedule the watchdog to 2 secondes approximatly with : 48MHz core frequency APB2 divider to 2 48000000/2/256/65000 = 1,4 secondes. Is there another mean to increase the watchdog value ? Thanks, Ludo
Now, I try to disable the watchdog by applying a APB_SwResetConfig(APB2, ENABLE, WDG_Periph); But It doesn't work. Why? PS: I know it is not a normal situation but I need it temporary Thanks, Ludo
you need to set the RTC to exit LPWFI mode before the watchdog expires, reset the WATCHDOG, reset the alarm and go back to LPWFI mode. This is far from ideal but does work. You can reset the WATCHDOG period to just over 8 minutes @ 32khz. Also you cant access the RTC @ 32khz which means you need to change to a higher clock freqeuncy first. This is the best you can get if you need low power and the watchdog. Ideally I would prefer to use the STOP mode instead, but as I need to turn off the external oscillator to get the best power savings, I can't use STOP mode ( it needs to be active to come out of STOP mode). I think there are a few bad design points with this chip.