Skip to main content
cyril
Associate
November 18, 2015
Question

RTC Wakeup: HAL_RTCEx_SetWakeUpTimer_IT

  • November 18, 2015
  • 1 reply
  • 896 views
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
This topic has been closed for replies.

1 reply

shawn2
Associate II
November 18, 2015
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?