-
So I've started looking at power management in my application. What I've done: CONFIG_PM=y Power states added to my board:
I've commented out pretty much everything from my main thread, I'm only sleeping for 5 seconds at a time. Running without PM, consumption is around 8mA. I was expecting the last two steps to give identical results but they're not and I don't understand why,¨ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Haven't solved thus yet, but found that the ticks that come into the policy is always around ~4000. My ticks per second is set to 4096 so seems like it schedules to sleep for about one second each time. From debug prints I can see it actually schedules that like every 100ms so it must wake for some reason. |
Beta Was this translation helpful? Give feedback.
-
STM32 power management in Zephyr relies on lptim being used as tick source when PM=y. |
Beta Was this translation helpful? Give feedback.
-
@erwango Sorry to bother you again but you seem to know much about STM and Zephyr. |
Beta Was this translation helpful? Give feedback.
STM32 power management in Zephyr relies on lptim being used as tick source when PM=y.
Did you enabled lptim node in you board dts ?