Skip to main content
Visitor II
Jul 31, 2025 8:54 AM UTC
Solved

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

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.

 

Saket_OmBest answer
ST Technical Moderator
Dec 16, 2025 7:35 AM UTC

Hello @Joste 

The issue has been fixed and now available on Github.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om

2 replies

ST Technical Moderator
Jul 31, 2025 11:02 AM UTC

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
Saket_OmBest answer
ST Technical Moderator
Dec 16, 2025 7:35 AM UTC

Hello @Joste 

The issue has been fixed and now available on Github.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om