cancel
Showing results for 
Search instead for 
Did you mean: 

RTC Wakeup: HAL_RTCEx_SetWakeUpTimer_IT

cyril
Associate II
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
1 REPLY 1
shawn2
Associate II
Posted on November 18, 2015 at 17:27

What was your problem before?  If you don't mind my asking.

Also, have you tried an alarm longer than say 30secs?