cancel
Showing results for 
Search instead for 
Did you mean: 

How to I update a running RTC time and date on stm32L4

PStee
Associate II

I understand that the registers are write protected and you have a clock synchronization issue, but I can not find the cube HAL level calls to do this.

3 REPLIES 3

What's the point of using Cube, if it's harder than reading the manual and writing a couple of assignments into registers?

Try to look at the examples in Cube.

JW

PStee
Associate II

I am using the HAL_RTC_SetTime(&hrtc, &stimestructureput, RTC_FORMAT_BIN); which says it is doing these steps but it is failing to get the RTC back in init mode so the value can be changed.

PStee
Associate II

The ever so intuitive answer was to change StoreOperation from SET to RESET now it works