STM32U073 RTC on LSI running ~1.5x fast after a battery swap
Hi,
I'm working with an STM32U073 in a battery-powered device, and I ran into
something I can't explain.
The RTC is clocked by the LSI (PREDIV_A = 3, PREDIV_S around 8000). I turn
on the LSE only for short periods to measure the LSI and adjust the RTC
prescalers. BOR is not enabled in the option bytes.
One of my units worked fine for weeks. Then, after I swapped its battery,
the RTC started running about 1.5x faster than real time. It was already
fast right after each boot (with the prescalers back at their nominal
values), and it stayed that way through at least 9 software resets over
two days.
It looks a lot like STM32G0 erratum 2.2.1 ("Unstable LSI when it clocks
RTC"), where people report the LSI starting at ~48.9 kHz after a VDD dip,
and only a full power cycle fixes it. But I couldn't find anything like
that in the STM32U073/U083 errata sheet (ES0602 Rev 3).
So my questions are:
1. Is this a known LSI issue on the STM32U0?
2. If so, what's the recommended workaround (backup domain reset on
power-up, enabling BOR, something else)? Does it fully fix it?
3. Is there any way to detect this in firmware, other than measuring the
LSI against another clock?
4. Can a software reset recover the LSI, or does it really need a full
power cycle?
Thanks!
