AnsweredAssumed Answered

CubeMx RTC Timeout does not trigger ISR

Question asked by adib on Nov 28, 2015
Latest reply on Apr 12, 2016 by STM32Cube-T
Hello all,

I made a new project with latests CubeMx 1.9 for stm32f4

My problem is that the autogenerated code does not trigger the ISR.
I found out that when I
__HAL_RTC_WAKEUPTIMER_CLEAR_FLAG(&hrtc, RTC_FLAG_WUTF);
just before
HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 1000, RTC_WAKEUPCLOCK_RTCCLK_DIV16);
in the MX_RTC_Init() function, then it works as ecpected.

Seems that WUTF flag unintentional set and that will block any further timouts to not activate the ISR.

Bug or feature? I would call it bug.

Regards, Adib.


Outcomes