Not possible to use programmable alarm and periodic wakeup functions simultaneously on the STM8L051F3 MCU?
IRET returns to nowhere from wakeup timer ISR as soon as programmable alarm interrupt is active!
Here is the STVD screen where programmable alarm and wakeup timer interrupts are enabled and wakeup timer ISR is just about to end. In the memory window at the bottom centered you can see a nonsense address stored in stack (highlighted with yellow).
Next is the screen of the result of IRET instruction
And a screen with programmable alarm disabled where MCU exits correctly from the ISR
What is it? Any clues?
