AnsweredAssumed Answered

STM32F407G-DISC1 - RTC (LSI) with HAL

Question asked by Jibbajibba on Nov 7, 2016
Latest reply on Nov 8, 2016 by Jibbajibba
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?

Outcomes