Skip to main content
a.gajdacs
Associate II
December 6, 2020
Solved

CubeMX 6.1.0 RTC alarm init bug

  • December 6, 2020
  • 3 replies
  • 1040 views

Hi,

I noticed that if I enable an alarm for the RTC using CubeMX 6.1.0 with date/weekday mask enabled, it results in this line being generated:

RTC_AlarmStruct.AlarmMask = RTC_ALARMMASK_DATEWEEKDAY

However, that flag is undefined. In my case, it should be:

RTC_AlarmStruct.AlarmMask = LL_RTC_ALMA_MASK_DATEWEEKDAY

(This is with L4_V1.16.0 and LL drivers, targeting an STM32L475, if that matters.)

This topic has been closed for replies.
Best answer by Khouloud ZEMMELI

Hi @a.gajdacs​ ,

Thanks for your feedback, you're right ! Issue will be fixed.

Khouloud

3 replies

Vangelis Fortounas
Associate II
December 7, 2020

"RTC_ALARMMASK_DATEWEEKDAY" is defined in HAL drivers.

a.gajdacs
a.gajdacsAuthor
Associate II
December 7, 2020

Good point! I forgot to mention that I'm using LL drivers.

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
December 7, 2020

Hi @a.gajdacs​ ,

Thanks for your feedback, you're right ! Issue will be fixed.

Khouloud