Can't wake from stop mode with low power timer event
Hello everyone,
I'm having problems with a STM32L010K8 in stop mode.
I'm trying to use the low power timer clocked by the LSI and having it to wake up the device from stop mode once the timer reaches ARR value.
I configured the EXTI event line 29 and deactivated the corresponding IMR bit (it is not clear in the L010 RM, but for L4 micros the IMR is prevalent on the EMR bits).
-> the device stays asleep
Then I enabled the autoreload interrupt bit (but not the NVIC)
-> the device wakes up only once. I believe because the interrupt flag stays set.
On the L4 I did not have such annoying issues, the event system was working fine.
On a side note, when debugging with the debugger connected, the event is firing up every time, not just once.
