Skip to main content
Subramanya A
Associate II
Apr 4, 2023 2:59 PM UTC
Solved

STM32WL RTC HANGS!

Hi Team,

I'm facing some trap in the STM32WLE5 device during RTC init, some time RTC initialization works, some time it hangs in generated function "HAL_RTC_MspInit()" during HAL_NVIC_EnableIRQ(RTC_Alarm_IRQn).

if any one faced this issue kindly let me know tow it was resolved.

Thanks in Advance.

This topic has been closed for replies.
Subramanya A
Subramanya ABest answer
Associate II
Apr 4, 2023 3:52 PM UTC

Seems like: adding below line before calling "MX_RTC_Init()" resolve the issue.

hrtc.IsEnabled.RtcFeatures = UINT32_MAX; 

1 reply

Subramanya A
Subramanya AAuthorBest answer
Associate II
Apr 4, 2023 3:52 PM UTC

Seems like: adding below line before calling "MX_RTC_Init()" resolve the issue.

hrtc.IsEnabled.RtcFeatures = UINT32_MAX;