Page 1 of 1

STM32 RTC calibration

Posted: Sun Dec 31, 2023 6:22 am
by user2006
Hello =) FC have good component for working with embeded RTC module, it is work. But RTC needs to be calibrated. In this, section 1.2, Table 1:
https://www.st.com/resource/en/applicat ... ronics.pdf
have table of 'Calibration value'. How i can add this 'Calibration value' ? Thanks a lot =)

Re: STM32 RTC calibration

Posted: Tue Jan 02, 2024 12:31 pm
by Steve-Matrix
That app note says "Load the calibration value in the RTC calibration register". I assume there is a reference to this register in the datasheet of the device you are using. You will probably need to use a C code icon to add code to set this register value.

Re: STM32 RTC calibration

Posted: Tue Jan 02, 2024 5:05 pm
by LeighM
Just to add to Steve's comment, there is some C code in this post, I've not tested it though,
https://community.st.com/t5/stm32-mcus- ... d-p/188501

Re: STM32 RTC calibration

Posted: Wed Jan 03, 2024 5:18 am
by user2006
When i compile, i have error:
error: 'BKP' undeclared (first use in this function)

Re: STM32 RTC calibration

Posted: Wed Jan 03, 2024 9:33 am
by LeighM
What is your target device?

Re: STM32 RTC calibration

Posted: Wed Jan 03, 2024 9:34 am
by Steve-Matrix
Please post your project (FCFX file) and the C code file and MSG.TXT file. That will help us resolve this.