New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32F4x power management #65050
STM32F4x power management #65050
Conversation
82384e2
to
cd6a9d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment, it looks good from the subsystem usage perspective.
cd6a9d8
to
1688dcb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few changes requested, but otherwise looks good.
This being said, would you mind enabling board on samples/boards/stm32/power_mgmt/blinky ?
I'm having a try and I can't see the LED blinking nor I can see power savings.
I'm using nucleo_f429zi and measuring power on JP5. Please let me know if this should be made in a different way.
Note: CONFIG_DEBUG=y:
CONFIG_DEBUG=n:
Difference between the 2 configs should be DBGMCU_CR_DBG_SLEEP value in DBGMCU->CR |
Sure, I'll check the blinky sample. |
I've reproduced the same problem. It is about the stack size. Using the RTC as idle timer requires Now, I'm thinking if I should add increasing the idle stack automatically or let the user do it in the config files. I would rather chose the second option with some additional documentation somewhere. |
1688dcb
to
71bef23
Compare
8f535b6
to
7c90975
Compare
Add soc power management for the STM32F4x chips. One low power state is added supported by all chips from the family - the Stop mode with voltage regulator in low-power mode. The Stop mode for STM32F chips has to work with the IDLE timer - CORTEX_M_SYSTICK_IDLE_TIMER, because PLL and HSI are disabled in the Stop mode (Systick is not clocked). The only possible wakeup source is RTC, which works as a IDLE timer for the Systick. The exit latency may need to be adjusted per system, depending on the system tick frequency and other variables. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
7c90975
to
95b9f2e
Compare
Add soc power management test and blinky sample for the nucleo_f429zi board. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
95b9f2e
to
a7e76ff
Compare
@ceolin ping |
Add Power Management support for the STM32F4x chips