STM32 RTC calibration

For general Flowcode discussion that does not belong in the other sections.
Post Reply
user2006
Posts: 11
http://meble-kuchenne.info.pl
Joined: Thu Nov 02, 2023 12:29 pm
Has thanked: 1 time

STM32 RTC calibration

Post 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 =)

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: STM32 RTC calibration

Post 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.

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32 RTC calibration

Post 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

user2006
Posts: 11
Joined: Thu Nov 02, 2023 12:29 pm
Has thanked: 1 time

Re: STM32 RTC calibration

Post by user2006 »

When i compile, i have error:
error: 'BKP' undeclared (first use in this function)

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 217 times

Re: STM32 RTC calibration

Post by LeighM »

What is your target device?

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: STM32 RTC calibration

Post by Steve-Matrix »

Please post your project (FCFX file) and the C code file and MSG.TXT file. That will help us resolve this.

Post Reply