Registered User mNo edit summary Tag: 2017 source edit |
Registered User mNo edit summary Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 52: | Line 52: | ||
<noinclude> | <noinclude> | ||
[[Category:Coprocessor management STM32Cube]] | [[Category:Coprocessor management STM32Cube]] | ||
[[Category:Platform_power]] | |||
{{PublicationRequestId | 10389 | 2019-01-21 | AlainF}} | {{PublicationRequestId | 10389 | 2019-01-21 | AlainF}} | ||
{{ArticleBasedOnModel|Framework overview article model}} | {{ArticleBasedOnModel|Framework overview article model}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:24, 18 July 2024
1. Article purpose
The purpose of this article is to give an overview of the software APIs available on the Arm® Cortex®-M (also named MCU) side to handle the low power modes, acting as coprocessor .
2. Low power modes available on the chip
The low power modes are handled by RCC and PWR peripherals.
See Power overview for mode description or refer to the reference manuals the full description of the modes (STM32MP15, STM32MP25).
2.1. Wakeup sources
The low power modes are left due to a wakeup event. It can be configured by setting the wakeup control feature of the IP and activating the corresponding EXTI on MCU side.
The wake sources are listed in the Power overview page.
3. Software overview
- The power HAL is used to select the Cortex-M4 low power mode.
- Further information on HAL can be found here: STM32CubeMP15 Package architecture
- The Cortex-M33 low power is not yet supported. As the MCU firmware is running in DDR, the firmware need to be stopped and the associated resources need to be released before requesting low power mode on MPU side with Linux.
- Further information on HAL can be found here: STM32CubeMP2 Package architecture
3.1. APIs description
The STM32MP15x lines power HAL supports the following APIs related to power management:
HAL_PWR_EnterSLEEPMode
: CSleep mode is enteredHAL_PWR_EnterStopMode
: CStop mode is entered allowing Stop as the deepest platform low power modeHAL_PWR_EnterStandbyMode
: CStop mode is entered allowing Standby as the deepest platform low power mode
4. Code source location
STM32CubeMP15 Package provides
- power HAL driver:
- EXTI driver: Drivers/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_exti.h
STM32CubeMP2 Package provides:
- power HAL driver:
- EXTI driver: Drivers/STM32MP2xx_HAL_Driver/Inc/stm32mp2xx_hal_exti.h