Skip to main content
Visitor II
April 20, 2020
Question

RTC Alarms

  • April 20, 2020
  • 2 replies
  • 1208 views

Hi,

I am having Nucleo 476RG board.

I configure Alarm A.

HAL_RTC_AlarmAEventCallback functions is called upon occurrence of Alarm.

Now when I configure AlarmA and then enter standby mode, the board wakes up from the standby mode upon the occurrence of alarm but does not call the AlarmAEventCallback function. which means the RTC interrup handler is not called upon after the wakeup from standby mode.

without standby mode, AlarmAEventCallback is called upon each time.

with standby mode, the board wakes up every time on Alarm but does not call AlarmAEventCallback.

Could any help on the above problem.

Thanks,

Best Regards,

Hitesh

    This topic has been closed for replies.

    2 replies

    Super User
    April 20, 2020

    And RTC_Alarm_IRQHandler() gets called? What's in that function?

    JW

    HMaje.1Author
    Visitor II
    April 20, 2020

    Hi

    HAL_RTC_AlarmAEventCallback(hrtc); function is called from

    void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc) handler.

    Hitesh

    Visitor II
    September 13, 2024

    I have the same issue on the other board.

    Where did you buy Nucleo 476RG board? 

    Some Chinese versions of STM32 do not support the alarm in RTC.