cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in LL_RTC_ALMB_SetDay() in stm32l1xx_ll_rtc.h

jfolsom
Associate II

In stm32l1xx_ll_rtc.h, generated by STM32Cube MCU Package for STM32L1 Series, v1.8.1, line 2110:

__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)));
}

The first argument of MODIFY_REG() should be RTCx->ALRMBR, not RTC->ALRMBR.

I think 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hi,

The issue will be fixed with STM32CubeL1 V1.9.0 release.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @jfolsom​ ,

Thanks for highlighting this issue. I transfer it internally to developer team for fix.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Imen.D
ST Employee

Hi,

The issue will be fixed with STM32CubeL1 V1.9.0 release.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thank you 🙂