STM32L475 Setting the RTC to 24 hour mode
I am using a STM32L475 and plan to also use an STM32L451 processor, I am having trouble setting the RTC so that its in 24 hour mode. According to the datasheet setting a 0 to bit 22 of RTC_TR should set it into 24 hour mode but this does not seem to work. I can set the time to 11:59:00 check the 24 hour indicator and it flips from 0 to 1 at 12:00 but it still displays in 12 hour mode. I also have set bit 6 of RTC_CR to 0 without any change. What Am i doing wrong or is there a sample code to configure the rtc that i am not seeing.
Thanks in advance
