RTC Library using LSE
I’m trying to use the RTC with a 32kHz Crystal on LSE my Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog Clone.
I can use LSI without problems, but it’s not accurate enough (3 seconds to fast in a minute) for my clock project.
So I attached a 32Khz crytsal to D12 and D13 to the Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog , and changed the rtc_init to rtc_init(RTCSEL_LSE);
And there it stucked. After some debugging I found out it hangs on:
static inline void rtc_wait_sync() {
while (*bb_perip(&(RTC->regs)->CRL, RTC_CRL_RSF_BIT) == 0);
}
