Question
STM32L4 HAL RTC Clear Alarm flags
Posted on November 30, 2016 at 16:21
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
