2014-10-24 06:25 AM
RTC runs on LSI, with battery. It keeps the data when power is off, but stops counting.
When power is reconnected, the time is the last time before power off, and start counting from there.What am I missing?ThanksJohanan #stm32f42014-10-24 06:41 AM
Hi
I believe the RTC will only work off the LSE osc when running off a battery.2014-10-24 08:28 AM
RM0090 rev.7, ch.5.1.2 Battery backup domain:
VBAT pin powers the following blocks: • The RTC • The LSE oscillator • The backup SRAM when the low-power backup regulator is enabled • PC13 to PC15 I/Os, plus PI8 I/O (when available) So, as Sung Chen Chung said above, LSI is not powered from VBAT pin, thus stops during VDD down. JW2014-10-24 10:47 AM
2014-10-24 10:55 AM
> I could not run LSE,
Note, that LSE tends to start up slowly, it may take up several seconds (!) to get it to oscillate properly. So, if your LSE startup code has a timeout and it's too short, you miy get the false impression that LSE doesn't want to start. Of course, the load capacitors together with the parasitic capacitance of the pins have to match the crystal's characteristics. JW2014-10-24 11:20 AM
Never in my life I spent so much time trying to run an RTC in a micro-controller. Actually I spent more time on this then on the SDRAM and Nor Flash FMC.
And it still does not work as I don't have the right xtal at hand.2014-10-27 03:50 AM
https://my.st.com/public/STe2ecommunities/mcu/_layouts/ST/MYSTForum/CodeOfConduct.aspx
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2014-10-28 12:57 PM
Corrective action taken.
Thank you :)