Skip to main content
HMaje.1
Associate III
Apr 20, 2020 11:24 AM UTC
Question

RTC Alarms

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.

3 replies

waclawek.jan
Super User
Apr 20, 2020 11:56 AM UTC

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

JW

HMaje.1
HMaje.1Author
Associate III
Apr 20, 2020 12:26 PM UTC

Hi

HAL_RTC_AlarmAEventCallback(hrtc); function is called from

void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc) handler.

Hitesh

Visitor II
Sep 13, 2024 12:36 PM UTC

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.