2023-04-11 11:52 PM
In my opinion there are two bugs HAL_RTC_SetTime(..) (p. 776) and HAL_RTC_GetTime(..) (p. 881).
/* Check Binary mode ((32-bit free-running counter) */
if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)
should be RTC_BINARY_ONLY instead of RTC_BINARY_NONE.
Solved! Go to Solution.
2023-04-12 4:08 AM
Hello @ANalb.1 and welcome to the Community :)
The latest version of STM32CubeWL v1.3.0 contains this line:
/* Check Binary mode ((32-bit free-running counter) */
if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)Imen
2023-04-12 4:08 AM
Hello @ANalb.1 and welcome to the Community :)
The latest version of STM32CubeWL v1.3.0 contains this line:
/* Check Binary mode ((32-bit free-running counter) */
if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)Imen
2023-04-13 2:21 AM
Sorry
2023-04-13 2:47 AM
If you are satisfied of my answer, please mark it as "Best" by choosing Select as Best, so that this thread will be marked as solved.
Imen
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.