From d7830ae01f905337d4203d93bf75b1f71478efbc Mon Sep 17 00:00:00 2001 From: Jason Teng Date: Wed, 12 Jul 2023 00:13:15 -0700 Subject: [PATCH] Fix: LSI 32khz and use 249 for synchprediv --- Core/Src/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/rtc.c b/Core/Src/rtc.c index a75fe36..b4073f9 100644 --- a/Core/Src/rtc.c +++ b/Core/Src/rtc.c @@ -46,7 +46,7 @@ void MX_RTC_Init(void) hrtc.Instance = RTC; hrtc.Init.HourFormat = RTC_HOURFORMAT_24; hrtc.Init.AsynchPrediv = 127; - hrtc.Init.SynchPrediv = 255; + hrtc.Init.SynchPrediv = 249; hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE; hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH;