Skip to main content
EKame.1
Associate
December 29, 2021
Question

Hi, I am using STM32WLE5CCU6 MCU and I am trying to enable RTC Wakeup Interrupt. I use HAL_NVIC_EnableIRQ(RTC_WKUP_IRQn) but seems like my code is stuck inside it. Any ideas what can be causing that?

  • December 29, 2021
  • 3 replies
  • 2273 views

..

This topic has been closed for replies.

3 replies

TDK
Super User
December 29, 2021

Sounds like it’s stuck in an IRQ handler. Make sure flags are cleared appropriately. Debug your code. Hit pause. See where it’s at.

"If you feel a post has answered your question, please click ""Accept as Solution""."
EKame.1
EKame.1Author
Associate
December 29, 2021

how is it stuck inside IRQ handler? I have printed some logs and It doesn't get out from this HAL_NVIC_EnableIRQ(RTC_WKUP_IRQn)

TDK
Super User
December 30, 2021
You enable an interrupt. Code doesn’t progress from that point. What other explanation would there be?
Debugging is likely to be more fruitful than guessing.
"If you feel a post has answered your question, please click ""Accept as Solution""."
Dana Myers
Senior
December 29, 2021

Do you have an ST/Link ? Relatively inexpensive. Highly recommended.

Dana K6JQ

EKame.1
EKame.1Author
Associate
December 29, 2021

yes I have it

Dana Myers
Senior
December 29, 2021

Have you tried running under the debugger, then halting to see what the MCU is doing when it's stuck?

Subramanya A
Associate II
April 4, 2023

Hi @EKame.1​ ,

Any update for aforementioned issue ? even I faced same issue [https://community.st.com/s/question/0D53W00002DAe0dSAD/stm32wl-rtc-hangs]

Thanks in Advance.