cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 low RTC precision

Posted on March 05, 2018 at 07:57

Hello there,

I am using an STM32L4 family MCU. In an application, the RTC peripheral is utilized and clocked from an external crystal:

0690X00000609xVQAQ.png

0690X00000609vUQAQ.png

The problem I have noticed just now is that with time, the RTC timer looses sync. It is not easy to notice in short periods of time, but after leaving the application to log time for entire weekend, I noticed that the RTC timer is over 20 minutes later after my PC timer (they were both synced before the weekend).

What could be the cause of this problem? Its hard to believe for me that the RTC timer is simply this low precision, as I am using an external crystal. I would appreciate all help.

#precision #stm32l4 #rtc

Note: this post was migrated and contained many threaded conversations, some content may be missing.
71 REPLIES 71
Albert
Associate II
Posted on March 19, 2018 at 13:27

See AN4013, chapter 2.4 for reciprocal frequency counter + Nucleo + Display shield = Nice frequency counter.

Theo.

Posted on March 19, 2018 at 12:37

Hello JLuc,

Please find extract from STM32L4 training material related to clock sources parameters, including their accuracy.

0690X0000060A9gQAE.png

Regards

Szymon