-
Hello all, I have been trying to make use of the built-in Real Time Clock logic on a STM32F401CC "Black Pill" generic module. I have been using this version of the board for the past year and it has worked fine on the various projects I've been doing. For this particular experiment, I downloaded the STM32duino example code from GitHub, compiled and have been running that code. The code compiled, loaded and executed just fine on the board, however it looks like the clock seems to be gaining between 1 to 2 minutes per hour of constant running. I haven't changed anything in the example aside for configuring the 'start time' values, and am using the STM32duino STM32RTC library version 1.03. My questions are:
I have been using a DS3231 outboard module as my RTC and would like to eliminate it if possible. Rich |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Which clock you used? |
Beta Was this translation helpful? Give feedback.
-
Problem resolved by using rtc.setClockSource(STM32RTC::LSE_CLOCK); as the clock source |
Beta Was this translation helpful? Give feedback.
Problem resolved by using rtc.setClockSource(STM32RTC::LSE_CLOCK); as the clock source