2022-05-31 02:02 PM
Having trouble setting my RTC with a fixed hour of 20.
See image from debugger session.
While attempting to set a fixed value of Decimal 20 to the RTC the register responds with 28.
Edit: STM32L031G6U6
2022-05-31 03:51 PM
> STM32L0G6U6
I wonder which one is that.
> While attemping to set a fixed value of Decimal 20 to the RTC the register responds with 28.
You have to fill in *all* fields of the structs you are using to call Cube/HAL functions, here, sTime->TimeFormat.
The same with sDate->WeekDay.
JW