Question
RTC Wakeup: HAL_RTCEx_SetWakeUpTimer_IT
Posted on November 18, 2015 at 16:51
I resolved my problem, I had to enable the interrupt into the NVIC, before activating the WKUP_IT:
/* Enable and set RTC_WKUP_IRQ */
HAL_NVIC_SetPriority(RTC_WKUP_IRQn, 2, 0); HAL_NVIC_EnableIRQ(RTC_WKUP_IRQn);HAL_RTCEx_SetWakeUpTimer_IT(&_hrtc, 4, RTC_WAKEUPCLOCK_CK_SPRE_16BITS); //interrupt every 5 seconds
#wakeup #timer #stm32 #rtc #rtc