2020-11-21 07:52 AM
2020-11-23 11:20 AM
It's more clear now: Clock, you mean Time, not SYSCLK.
We provided a detailed RTC examples (AN4759) which can give you better idea, or you can get inspired from RTC examples within STM32CubeF7 MCU firmware and use the smooth calibration function (HAL_RTCEx_SetSmoothCalib) to calibrate the RTC: STM32Cube_FW_F7_V1.16.0\Projects\STM32F746ZG-Nucleo\Examples\RTC\RTC_Calendar
Have a look at the "RTC smooth digital calibration" section in the RM0385 and this stm32f7xx_hal_rtc_ex.c file, this will help you to understand RTC calibration behaviour and have more idea on how configuration/implementation is done.
Hope this helps you.
Imen
2020-11-23 07:17 AM
Hello @Andrzej Dębski ,
To improve the accuracy, I recommend you to refer to this AN2834 Application note How to get the best ADC accuracy in STM32 microcontrollers
Please mark my answer as best by clicking on the "Select as Best" button if it fully solved your issue. This will help other users find this solution more quickly.
Imen
2020-11-23 08:29 AM
I didn't mean the accuracy of the ADC, but the accuracy of the system clock pulses.
2020-11-23 08:57 AM
Could you please provide more details ? What do you have on MCO outputs ?
2020-11-23 10:02 AM
2020-11-23 11:20 AM
It's more clear now: Clock, you mean Time, not SYSCLK.
We provided a detailed RTC examples (AN4759) which can give you better idea, or you can get inspired from RTC examples within STM32CubeF7 MCU firmware and use the smooth calibration function (HAL_RTCEx_SetSmoothCalib) to calibrate the RTC: STM32Cube_FW_F7_V1.16.0\Projects\STM32F746ZG-Nucleo\Examples\RTC\RTC_Calendar
Have a look at the "RTC smooth digital calibration" section in the RM0385 and this stm32f7xx_hal_rtc_ex.c file, this will help you to understand RTC calibration behaviour and have more idea on how configuration/implementation is done.
Hope this helps you.
Imen
2020-11-23 11:49 AM
Thank