cancel
Showing results for 
Search instead for 
Did you mean: 

UTIL_TIMER_Create with RTC in mixed binary & bcd mode

SLevi.1
Associate III

My BLE project on stm32wba65 makes use of "UTIL_TIMER_Create" to set a callback. This works ok when the RTC is configured just as free running binary. If I set the rtc mode to mixed binary & bcd, the callback never gets fired. I'm using an LSE to drive the rtc.

Why is this?

I'm trying to base a project off the BLE_Heartrate example. I need the calendar time & date so I can timestamp data. I synch the time over the BLE from a PC.

I suppose I could just use the ms ticks since boot, but how does this survive a reset (but not power outage)? Is the binary counter derived from the rtc sufficiently large enough to hold a date for a year or more?

Any examples using binary rtc and external time synch would be most welcome.

0 REPLIES 0