I have an STM32L0 using the HSI to clock at 6MHz, and a LSE for the RTC.
Devices goes to sleep (STOP mode) and wakes up just fine.
But if I activate the RTC Alarm A interrupt, while restoring clocks I get a HAL_ERROR in the HAL_RCC_OscConfig() function.
More precisely here:
/* Check if the PLL is used as system clock or not */
if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
Any clues into this?