cancel
Showing results for 
Search instead for 
Did you mean: 

RTC_HOURFORMAT_24 does not work in L053.

Innomatic
Associate II

My environment is as follows:

  • CubeMX v4.26.1 with STM32L0 HAL v1.10.0
  • STM32L053C8Tx
  • gcc-arm-none-eabi-7-2017--q4-major

I set the RTC with RTC_HOURFORMAT_24. Actual code for the setup was generated by the CubeMX. If I set the clock to 12:59:59 then the RTC proceeds to 1:00:00. If I set the clock to 13:00:00, then it proceeds to 13:00:01.

RTC_HOURSFORMAT_12 seemed to work fine.

3 REPLIES 3

> If I set the clock to 12:59:59 then the RTC proceeds to 1:00:00.

Then it's not set to 24-hour format. Read out and check the RTC registers' content.

JW

Innomatic
Associate II

I confirmed it by reading the RTC register. It does proceed to 1:00:00 with 24 hours setting. I ended up with using RTC_HOURSFORMAT_12, instead converting it 24 hours format in the firmware. Is this a undocumented silicon error?

Post the content of the RTC registers here.

JW