Skip to main content
Associate II
December 22, 2023
Question

STM32L0 Wakeup Source Detection

  • December 22, 2023
  • 2 replies
  • 1335 views

HI,

MCU :STM32L010R8Tx

Power Mode : Shutdown Mode

Wake Up Sources : RTC WakeUp, External WakeUp Pin 1 , External WakeUp Pin 2.

 

Reading Boot reason by checking one by one using __HAL_RCC_GET_FLAG(Flag).

And Able to detect Standby Wakeup.

 

But How to know the source of wake Up whether it is caused by wakeup Pin or RTC ?

 

_Nikhil v v 

This topic has been closed for replies.

2 replies

ST Technical Moderator
December 24, 2023

Hello @nikhivv07,

Please have a look at this post that may help you:

[STM32L0] Wake up Flag for RTC does not rise when ... - STMicroelectronics Community

 

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
nikhivv07Author
Associate II
January 3, 2024

Hi,

thank you for the reference.

When device going to low power mode we are configuring RTC Wakeup time by writting

hrtc->Instance->WUTR = (uint32_t)WakeUpCounter; 

where wakeupcounter is the count value in seconds.

i like to know to which count register value is comparing to wakeupCounter (WUTR) to wakeup from Low Power Mode.

 

thanks,

Nikhil v v