Skip to main content
Chasqui
Visitor II
September 14, 2021
Solved

Issue with STM32Cube generating HAL_RTCEx_SetWakeUpTimer_IT in MX_RTC_Init. Configuration issue or bug?

  • September 14, 2021
  • 1 reply
  • 1177 views

Dear ST community, I am new developing firmware for stm32s. I am trying to enable the interrupt for RTC wakeup for a nucleoL476RG board using STM32CubeIDE 1.7.0 (which is using STM32CubeMX 6.3.0-RC5). I am selecting WakeUp: Internal WakeUp. I am also enabling RTC wake-up interrupt through EXTI line 20 and selecting Generate IRQ handler and Call HAL handler.

However, the  HAL_RTCEx_SetWakeUpTimer_IT call is not been created in MX_RTC_Init. Interestingly,  the alternate HAL_RTCEx_SetWakeUpTimer does get generated if I select Internal WakeUp but without enabling the interrupt.

Am I missing something in my configuration or is there a bug in STM32Cube? Help would be appreciated!

This topic has been closed for replies.
Best answer by Imen.D

Hello @Chasqui​ and welcome to the Community :)

Thanks to have reported this issue.

You are right the MX_RTC_Init () is missing HAL_RTCEx_SetWakeUpTimer_IT () with STM32CubeMX version 6.3.0.

Our team are working to resolve this issue in the coming releases of STM32CubeMX.

(Internal Ticket 111366: this is an internal tracking number and is not accessible or usable by customers)

Meanwhile, you can use the STM32CubeMX version 6.2.1 as the HAL_RTCEx_SetWakeUpTimer_IT () is correctly generated in MX_RTC_Init () with this previous release.

Thank you for your contribution and your patience while we work to fix this issue.

When your question is answered, please close this topic by choosing Select as Best.

Imen

1 reply

Imen.DBest answer
ST Technical Moderator
September 15, 2021

Hello @Chasqui​ and welcome to the Community :)

Thanks to have reported this issue.

You are right the MX_RTC_Init () is missing HAL_RTCEx_SetWakeUpTimer_IT () with STM32CubeMX version 6.3.0.

Our team are working to resolve this issue in the coming releases of STM32CubeMX.

(Internal Ticket 111366: this is an internal tracking number and is not accessible or usable by customers)

Meanwhile, you can use the STM32CubeMX version 6.2.1 as the HAL_RTCEx_SetWakeUpTimer_IT () is correctly generated in MX_RTC_Init () with this previous release.

Thank you for your contribution and your patience while we work to fix this issue.

When your question is answered, please close this topic by choosing Select as Best.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks