AnsweredAssumed Answered

RTC Wakeup: HAL_RTCEx_SetWakeUpTimer_IT

Question asked by Fougeray.Cyril on Nov 18, 2015
Latest reply on Nov 18, 2015 by eclipsePhage
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_RTCEx_SetWakeUpTimer_IT(&_hrtc, 4, RTC_WAKEUPCLOCK_CK_SPRE_16BITS); //interrupt every 5 seconds