AnsweredAssumed Answered

STM32L4 HAL RTC Clear Alarm flags

Question asked by confalonieri.fabio on Nov 30, 2016
Latest reply on Oct 30, 2017 by P M


The latest release of RTC HAL library (1.6.0) for STM32L4 does not clear the RTC  ALARM interrupt flag.

The following code from the function

"void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef* hrtc)"

    /* Clear the AlarmA interrupt pending bit */

Does nothing !

the only way to clear the ALARMA flag is add a custom instruction like

hrtc->Instance->ISR = hrtc->Instance->ISR & 0xFFFFFEFF; // Clear Alarm A flag

Any idea ?

Is that problem affecting other peripherals ?

Kind regards