Skip to main content
jfolsom
Associate II
Feb 23, 2019 7:08 AM UTC
Solved

Bug in LL_RTC_ALMB_SetDay() in stm32l1xx_ll_rtc.h

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.
Imen.DBest answer
ST Technical Moderator
Feb 27, 2019 9:46 AM UTC

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

3 replies

ST Technical Moderator
Feb 25, 2019 2:20 PM UTC

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
Feb 27, 2019 9:46 AM UTC

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
Feb 28, 2019 6:27 PM UTC

Thank you :)