cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB50 RTC counts more than 24h

EnricoMosconi
Associate

Hello, I'm using STM32WB55 for my application.

My application is installed in 20 devices more or less.

I set the RTC with RTC_HOURFORMAT_24.

The RTC calendar is updated every 24 hours by cloud, usually.

Only two of those devices, expose a problem with RTC: when reading the calendar the hours keep counting after 24 reaching more than 70 in some case.

The day does not increase, passing 24 hours.

The same issue (I think) also give me one differtent behaviour, after 12:59:59 the hours become 01:00:00 like the RTC was set to RTC_HOURFORMAT_12, but it is not!

I use the set function in one part of the code, using these instructions:

HAL_PWR_EnableBkUpAccess();

HAL_RTC_SetTime(&hrtc, &RTC_TimeStruct, RTC_FORMAT_BIN);

HAL_RTC_SetDate(&hrtc, &RTC_DateStruct, RTC_FORMAT_BIN);

HAL_PWR_DisableBkUpAccess();

Could some wrong operation overwrite the RTC register and change the settings in this way?

Could someone suggest me a fix or a test to do?

0 REPLIES 0