This article gives information about the RETRAM low power management firmware for STM32MP2 series with M33-TD flavor
.
| This article is only applicable to M33-TD flavor |
1. Framework purpose[edit | edit source]
The purpose of this article is to explain how in FwST-M Packages this RETRAM firmware handles the STM32MP2 series power management firmware for M33-TD flavor
:
- Cortex-M33 firmware based on HAL, running in RETRAM
- loaded and used by TF-M, with the power management (PM) partition
- set DDR in Software Self Refresh (SSR) mode
- request system low power mode: Stop2 or Standby mode
- store and restore the minimal part of the system configuration for Standby mode
See also the page STM32MP2 power overview.
2. System overview[edit | edit source]
| Coming soon |
2.1. Component description[edit | edit source]
| Coming soon |
2.2. API description[edit | edit source]
The CMake interface is provided to TF-M in interface/
3. Configuration[edit | edit source]
The firmware configuration is done with CMake with the variables:
- STM32_SOC_NAME
- STM32_DDR_TYPE
- STM32_DDR_FREQ
- STM32_DDR_SIZE
These parameters are provided by TF-M CMake when the firmware is compiled.
4. How to use the framework[edit | edit source]
The STM32MP2 low power firmware is compiled in TF-M with the PM partition. This PM partition loads the firmware in RETRAM, compute CRC and handle low power mode request:
- Code: platform/ext/target/stm/common/stm32mp2xx/secure_fw/partitions/pm/
- API: platform/ext/target/stm/common/stm32mp2xx/secure/services/include/uapi/tfm_pm_api.h
5. How to trace and debug the framework[edit | edit source]
5.1. How to trace[edit | edit source]
| Coming soon |
5.2. How to debug[edit | edit source]
| Coming soon |
6. Source code location[edit | edit source]
The STM32MP2 low power firmware source code is composed of:
- STM32MP2 HAL driver
- code define in stm32mp2-low-power git repository, in directory src/
7. To go further[edit | edit source]
8. References[edit | edit source]