2025-07-31 1:54 AM
In function LL_RTC_ALMB_SetDay of file stm32u0xx_ll_rtc.h line 2198
Original:
__STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
{
MODIFY_REG(RTC->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU),
(((Day & 0xF0U) << (RTC_ALRMBR_DT_Pos - 4U)) | ((Day & 0x0FU) << RTC_ALRMBR_DU_Pos)));
}
Missing x in RTC->ALRMBR
__STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
{
MODIFY_REG(RTCx->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU),
(((Day & 0xF0U) << (RTC_ALRMBR_DT_Pos - 4U)) | ((Day & 0x0FU) << RTC_ALRMBR_DU_Pos)));
}
Personal opinion: I would recommend compiling code with the -Wall, -Wextra, and -pedantic compiler flags.
From my point of view, confidence in the quality of code that contains such easily detectable errors is greatly limited. For this reason, I prefer not to use HAL drivers.
2025-07-31 4:02 AM
Hello @Joste
Thank you for bringing this issue to our attention.
I reported this internally.
Internal ticket number: 215106 (This is an internal tracking number and is not accessible or usable by customers).