Question
STM32F407G-DISC1 - RTC (LSI) with HAL
Posted on November 07, 2016 at 12:50
hi
im trying to get the rtc clock working on my discovery board. i configured the project with cubeMX, id like to use the LSI since i got no LSE, and im working with the latest HAL F4 driver. the rtc init works fine, every call ends with HAL_OK. also, if i start debugging and always the FIRST rtc_gettime call is successfully! from this point on though, the rtc is state READY but it looks like it has been reset or something, since the 2nd getTime call returns the init time from this point on. just the subseconds still change, but not the actual time. it looks to me like i missed a IRQ handler or similar, but the HAL driver does only have an alarm irq handler (exti). anyone an idea where this errors origin could be?