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 =)
STM32 RTC calibration
-
- Posts: 11
- http://meble-kuchenne.info.pl
- Joined: Thu Nov 02, 2023 12:29 pm
- Has thanked: 1 time
-
- Matrix Staff
- Posts: 1355
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 182 times
- Been thanked: 317 times
Re: STM32 RTC calibration
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.
-
- Valued Contributor
- Posts: 407
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 76 times
- Been thanked: 223 times
Re: STM32 RTC calibration
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
https://community.st.com/t5/stm32-mcus- ... d-p/188501
Re: STM32 RTC calibration
When i compile, i have error:
error: 'BKP' undeclared (first use in this function)
error: 'BKP' undeclared (first use in this function)
-
- Matrix Staff
- Posts: 1355
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 182 times
- Been thanked: 317 times
Re: STM32 RTC calibration
Please post your project (FCFX file) and the C code file and MSG.TXT file. That will help us resolve this.