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

Hi,

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 */
      __HAL_RTC_ALARM_CLEAR_FLAG(hrtc, RTC_FLAG_ALRAF);

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

F.c

Outcomes