2015-11-18 07:51 AM
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 #rtc2015-11-18 08:27 AM
What was your problem before? If you don't mind my asking.
Also, have you tried an alarm longer than say 30secs?