Skip to main content
This topic has been closed for replies.
Best answer by Jean-Marc S

Hello

I suppose you need to:

  • 1) Configure the LPTIM using CubeMx (duration of the periodic time,..)
  • 2) Activate the wakeup source for LPTIM

example provided here for UART4:

https://wiki.st.com/stm32mpu/wiki/Power_overview#Example_of_wakeup_source_activation

echo enabled > /sys/devices/platform/soc/40010000.serial/tty/ttySTM0/power/wakeup

echo enabled > /sys/devices/platform/soc/40010000.serial/power/wakeup

(LPTIM @ is 40009000)

     

 make sure the clock for LPTIM are activated during the sleep mode

(only some possible hint, I am not familiar with DT myself, hope it helps)

JM

1 reply

Jean-Marc S
Jean-Marc SBest answer
ST Employee
January 19, 2023

Hello

I suppose you need to:

  • 1) Configure the LPTIM using CubeMx (duration of the periodic time,..)
  • 2) Activate the wakeup source for LPTIM

example provided here for UART4:

https://wiki.st.com/stm32mpu/wiki/Power_overview#Example_of_wakeup_source_activation

echo enabled > /sys/devices/platform/soc/40010000.serial/tty/ttySTM0/power/wakeup

echo enabled > /sys/devices/platform/soc/40010000.serial/power/wakeup

(LPTIM @ is 40009000)

     

 make sure the clock for LPTIM are activated during the sleep mode

(only some possible hint, I am not familiar with DT myself, hope it helps)

JM