cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 6.1.0 RTC alarm init bug

a.gajdacs
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Khouloud ZEMMELI
ST Employee

Hi @a.gajdacs​ ,

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

Khouloud

View solution in original post

3 REPLIES 3

"RTC_ALARMMASK_DATEWEEKDAY" is defined in HAL drivers.

a.gajdacs
Associate II

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

Khouloud ZEMMELI
ST Employee

Hi @a.gajdacs​ ,

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

Khouloud