Skip to main content
Nimit Vachhani
Associate III
June 30, 2025
Solved

STM32F207 RTC Calibration

  • June 30, 2025
  • 3 replies
  • 408 views

Greetings Everybody,

I have Nucleo-F207ZG board. I want to try RTC feature of this STM32. In past i did try using RTC but after some days the time used to drift and it was like 4 seconds ahead than actual time after on week and after 1 month time was ahead like almost 15 seconds. 

If you have any step by step procedure of RTC smooth digital smooth calibration then please share. I have gone through various application notes but i am getting more confused... 

Please help me.

Best answer by Peter BENSCH

Have you seen this Knowledge Base article?

Regards
/Peter

3 replies

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
June 30, 2025

Have you seen this Knowledge Base article?

Regards
/Peter

mƎALLEm
Technical Moderator
June 30, 2025

Hello,

I think this application note AN2604 "STM32F101xx and STM32F103xx RTC calibration" can help you.

See also: How to calibrate the STM32's real-time clock (RTC)

"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."
TDK
Super User
June 30, 2025

15 seconds in 1 month is an error of 5.7 ppm. That's well within the expected tolerance of most crystals.

The calibration has a resolution of about 1 ppm. So while you can calibrate it, be realistic with your ultimate expectations on accuracy. Temperature variations will cause the largest error.

"If you feel a post has answered your question, please click ""Accept as Solution""."