cancel
Showing results for 
Search instead for 
Did you mean: 

Using LPTIM in Stop Mode to Wake Up STM32L072 (Murata CMWX1ZZABZ-078)

TAHIR97
Visitor

Hello,

I'm using the STM32L072 MCU as part of the Murata CMWX1ZZABZ-078 module in my application. I want to configure the Low-Power Timer (LPTIM) to generate a wake-up event when the MCU is in Stop mode.

Could someone provide guidance on how to configure the LPTIM to wake up the MCU after a set time period? Any example code or specific considerations related to the STM32L072 and this module would be greatly appreciated.

Thank you!

1 REPLY 1
Imen.D
ST Employee

Hello @TAHIR97 ,

You can start your project with LPTIM examples available under STM32CubeL0 firmware package:

STM32CubeL0/Projects/STM32L073Z-EVAL/Examples/LPTIM at master · STMicroelectronics/STM32CubeL0 · GitHub

Make sure to enable the LPTIM Clock, configure the LPTIM and enable the LPTIM interrupt in the NVIC. Ensure to configure the MCU to enter Stop mode and that the LPTIM is allowed to run in this mode. Then Handle the Wake-Up Event.

You can refer to these resources that will help you in your project:

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen