Skip to main content
jfolsom
Associate II
February 23, 2019
Solved

Bug in LL_RTC_ALMB_SetDay() in stm32l1xx_ll_rtc.h

  • February 23, 2019
  • 3 replies
  • 1086 views

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

This topic has been closed for replies.
Best answer by Imen.D

Hi,

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

Kind Regards,

Imen

3 replies

ST Technical Moderator
February 25, 2019

Hello @jfolsom​ ,

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

Kind Regards,

Imen

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. Thanks
Imen.DBest answer
ST Technical Moderator
February 27, 2019

Hi,

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

Kind Regards,

Imen

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. Thanks
jfolsom
jfolsomAuthor
Associate II
February 28, 2019

Thank you :)