Turn on RTC battery backup
Posted: Sun Feb 19, 2012 5:10 pm
Our STM32F103VE board has a battery backup for the RTC ... in hal_lld.c I see
/* PWR and BD clocks enabled. */
rccEnablePWRInterface(FALSE);
rccEnableBKPInterface(FALSE);
Looking at the STM specs these appear to set registers that enable an RTC backup timer. I've tried setting these TRUE, but in both cases while the RTC value is maintained when power is off, it's not being updated, which is what I want to achieve. My understanding is that this should be possible.
I read the above code to mean that PWR and BD are in fact disabled when 2.4 boots. Would you clarify this please?
regards
SD
/* PWR and BD clocks enabled. */
rccEnablePWRInterface(FALSE);
rccEnableBKPInterface(FALSE);
Looking at the STM specs these appear to set registers that enable an RTC backup timer. I've tried setting these TRUE, but in both cases while the RTC value is maintained when power is off, it's not being updated, which is what I want to achieve. My understanding is that this should be possible.
I read the above code to mean that PWR and BD are in fact disabled when 2.4 boots. Would you clarify this please?
regards
SD