Skip to main content
Visitor II
July 31, 2025
Solved

Missing x in content of the LL_RTC_ALMB_SetDay of the stm32u0xx_ll_rtc.h

  • July 31, 2025
  • 2 replies
  • 219 views

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.

 

    This topic has been closed for replies.
    Best answer by Saket_Om

    Hello @Joste 

    The issue has been fixed and now available on Github.

    2 replies

    Technical Moderator
    July 31, 2025

    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).

    Saket_OmAnswer
    Technical Moderator
    December 16, 2025

    Hello @Joste 

    The issue has been fixed and now available on Github.