2019-09-10 12:24 AM
I have modified the example PWR/PWR_Stop2_RTC that uses the RTC periodid timer and used the alarm as wake-up source, as described in example RTC/RTC_Alarm.
I achieved to get the wake-up cycle once, but when coming to the stop2-command the 2nd time, the µP does not stop but continues running.
I have added a lot of code to reset flags that might concern, but in the end I don't find the correct way.
Does anybody know about an example that performs just this: enter stop mode and wake up through Alarm from RTC?