Skip to main content
Innomatic
Associate III
August 25, 2018
Question

RTC_HOURFORMAT_24 does not work in L053.

  • August 25, 2018
  • 3 replies
  • 886 views

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.

    This topic has been closed for replies.

    3 replies

    waclawek.jan
    Super User
    August 29, 2018

    > 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
    InnomaticAuthor
    Associate III
    September 2, 2018

    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?

    waclawek.jan
    Super User
    September 2, 2018

    Post the content of the RTC registers here.

    JW