2021-04-25 07:08 PM
The function RTC_EnterInitMode in stm32h7xx_hal_rtc.c can cause a forever loop when initializing RTC. The break line is missed as below:
while ((hrtc->Instance->ISR & RTC_ISR_INITF) == 0U)
{
if((HAL_GetTick() - tickstart) > RTC_TIMEOUT_VALUE)
{
status = HAL_TIMEOUT;
hrtc->State = HAL_RTC_STATE_TIMEOUT;
break; <<<<< missed line
}
}
This was found occasionally with my STM32H745ZI-Q eval board, which of RTC and LTE were damaged by wrong power connection.
Solved! Go to Solution.
2022-01-20 09:09 AM
Confirmed it's fixed in v1.10.1. Thanks.
2021-04-25 11:52 PM
2021-04-26 09:54 AM
Why not fix it in stm32h7xx_hal_driver?
please look closely that you are talking about a different HAL.
2021-04-26 09:58 AM
Oops sorry. Yes this is a different HAL.
You can report the bug here: https://github.com/STMicroelectronics/stm32h7xx_hal_driver/issues
2021-04-28 05:37 AM
Hi @PX ,
After a quick review, I don't find this issue tracked in Github.
I'll take care to report it to development team.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-01-20 09:09 AM
Confirmed it's fixed in v1.10.1. Thanks.