Last edited 6 months ago

STM32MP13 peripherals overview: Difference between revisions

Registered User
mNo edit summary
Registered User
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{ApplicableFor
{{ApplicableFor
|MPUs list= STM32MP13x
|MPUs list=STM32MP13x
|MPUs checklist=STM32MP13x, STM32MP15x
|MPUs checklist=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x
}}</noinclude>
}}
{{UnderConstruction}}
<noinclude></noinclude>
{{InternalInfo|This page has been moved to [[STM32MP13 peripherals overview - alpha]], that can be not found via the search. You can send the URL of this  hidden page to ALPHA customers only}}
 
This article lists all internal peripherals embedded in {{MicroprocessorDevice | device=13}} and shows the assignment possibilities to the execution contexts for each one of them.<br>
From this article, you can also access to individual peripheral articles with information related to the overview and configuration aspects.
 
{{ReviewsComments|-- [[User:Jean Christophe Trotin|Jean Christophe Trotin]] ([[User talk:Jean Christophe Trotin|talk]]) 11:11, 23 November 2023 (CET)<br />Several points:
* Why not writing "For the STM32CubeMP13 Package (running on the Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup>-A7 processor), [...]" instead of "For the STM32Cube MPU package (such as e.g. STM32CubeMP13)", since the article is dedicated to the MP13
* If I correctly understand, the assignment of the peripherals is the same as the one indicated in the "OP-TEE" column. But, if, in the "OP-TEE" column, it is written that the peripherals is not assigned to the secure context (e.g. TIM 1 to 8), does it mean that there are also not assigned in the STM32CubeMP13 Package case (does it mean that there are not usable?)?
* I'm wondering if the point wouldn't be to say for the STM32CubeMP13 Package that all the supported peripherals are assigned to the secure context, and it is possible to assign them to the non-secure context thanks to STM32CubeMX? <br> NSA : AP loic could you please check which of sentences proposed below illustrate in the best manner the situaiton }}
 
{{Important| This article has be written in scope of STM32 MPU OpenSTLinux Embedded software. <br>
For the STM32CubeMP13 Package (running on the Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup>-A7 processor), the [[#Internal peripherals assignment| peripheral assignment table]] is also applicable. <br>All supported peripherals are, by default, assigned to the secure context, and it is possible to assign them to the non-secure context thanks to STM32CubeMX. <br> or  <br>The default peripheral assignments for STM32CubeMP13 are described in Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup>-A secure column of this table.  As usual, the customer can change this configuration to switch in Arm<sup>&reg;</sup> Cortex<sup>&reg;</sup>-A non-secure context using STM32CubeMX}}
 
{{ReviewsComments|-- [[User:Loic Pallardy|Loic Pallardy]] ([[User talk:Loic Pallardy|talk]]) 21:55, 23 November 2023 (CET)<br />agree with Jean Christophe:
* need to mention Cortex-A Cube package else it could be confusing even if this page is MP13 only
* in fact we should have a page that describe CA7 Cube content which allows to create a monolothic firmware running in one execution context
* Cube firmware can run either on CA7 secure context or CA7 non-secure context depending on customer choice
* CubeMX allows to assign/enable peripherals that will be handled by Cube firmware
* so default assignment shown below is not valid, all choices are ...}}
 
==Internal peripherals overview==
The figure below shows all '''peripherals''' embedded in {{MicroprocessorDevice | device=13}}, grouped per '''functional domains''' that are reused in many places of this wiki to structure the articles.  
<br />
 
Several '''execution contexts''' exist on {{MicroprocessorDevice | device=13}}<ref>[[:Category:STM32_MPU_microprocessor_devices#Multiple-core_architecture_concepts|STM32 MPU microprocessor devices: multiple-core architecture concepts]]</ref>, corresponding to the '''Arm Cortex-A7 security modes''':
* <span style="color:#FFFFFF; background:{{STPink}};">&nbsp;Arm Cortex-A7 secure&nbsp;</span> (Trustzone), running [[STM32 MPU ROM code overview|ROM code]] and [[TF-A BL2 overview|TF-A BL2]] at boot time, and running [[STM32 MPU OP-TEE overview|OP-TEE]] at runtime
* <span style="color:#FFFFFF; background:{{STDarkBlue}};">&nbsp;Arm Cortex-A7 non secure&nbsp;</span>, running [[U-Boot overview|U-Boot]] at boot time, and running [[STM32MP13 Linux kernel overview|Linux]] at runtime
 
Some peripherals can be strictly '''assigned''' to one execution context, this is the case for most of the peripherals, like [[USART internal peripheral|USART]] or [[I2C internal peripheral|I2C]].<br />
Other ones can be '''shared''' between several execution contexts, this is the case for system peripherals like [[STM32MP13 PWR internal peripheral|PWR]] or [[RCC internal peripheral|RCC]].<br />
 
The legend below shows how assigned and shared peripherals are identified in the assignment diagram that follows.
 
[[File: STM32MP13IPsOverview legend.png]]
<br />
 
Both the diagram below and the following summary table (in [[#Internal peripherals runtime assignment|Internal peripherals runtime assignment]] and [[#Internal peripherals boot time assignment|Internal peripherals boot time assignment]] chapters below) are clickable in order to jump to each peripheral overview article and get more detailed information (like the software frameworks used to control them).
They list STMicroelectronics recommendations. The STM32MP13 reference manual <ref>[[STM32MP13 resources#Reference manuals|STM32MP13 reference manuals]]</ref>  may expose more possibilities then what is shown here.
 
{{ImageMap | Image:STM32MP13IPsOverview.png {{!}} frame {{!}} center{{!}} STM32MP13 internal peripherals overview
rect 15 0 176 57 [[Arm Cortex-A7 | Cortex-A7]]
rect 15 85 91 110 [[STGEN internal peripheral | STGEN]]
rect 15 116 91 141 [[SYSCFG internal peripheral | SYSCFG]]
rect 15 147 91 172 [[RTC internal peripheral | RTC]]
rect 108 85 184 110 [[EXTI internal peripheral | EXTI]]
rect 108 116 184 141 [[GIC internal peripheral | GIC]]
rect 203 85 279 110 [[IWDG internal peripheral | IWDG1]]
rect 203 116 279 141 [[IWDG internal peripheral | IWDG2]]
rect 332 85 401 111 [[DMAMUX internal peripheral | DMAMUX1]]
rect 446 85 515 111 [[DMAMUX internal peripheral | DMAMUX2]]
rect 446 85 515 111 [[DMAMUX internal peripheral | DMAMUX2]]
rect 295 116 364 141 [[DMA internal peripheral | DMA1]]
rect 371 116 440 141 [[DMA internal peripheral | DMA2]]
rect 446 116 515 141 [[DMA internal peripheral | DMA3]]
rect 370 146 440 172 [[MDMA internal peripheral | MDMA]]
rect 712 87 787 111 [[SAES internal peripheral | SAES]]
rect 549 117 624 141 [[ETZPC internal peripheral | ETZPC]]
rect 630 117 706 141 [[DDRMCE internal peripheral | DDRMCE]]
rect 712 117 787 141 [[PKA internal peripheral | PKA]]
rect 549 147 624 172 [[TZC internal peripheral | TZC]]
rect 630 147 706 172 [[RNG internal peripheral | RNG]]
rect 712 147 787 172 [[HASH internal peripheral | HASH]]
rect 549 177 624 202 [[TAMP internal peripheral | TAMP]]
rect 630 177 706 202 [[CRYP internal peripheral | CRYP]]
rect 712 177 787 202 [[CRC internal peripheral | CRC]]
rect 24 202 100 227 [[SYSRAM internal memory | SYSRAM]]
rect 108 202 183 227 [[DDRCTRL and DDRPHYC internal peripherals | DDR via DDRCTRL]]
rect 190 202 266 227 [[BKPSRAM internal memory | BKPSRAM ]]
rect 273 202 349 227 [[STM32MP13 SRAM internal memory | SRAM1 ]]
rect 356 202 432 227 [[STM32MP13 SRAM internal memory | SRAM2 ]]
rect 439 202 515 227 [[STM32MP13 SRAM internal memory | SRAM3 ]]
rect 549 235 624 260 [[DCMIPP internal peripheral | DCMIPP ]]
rect 712 235 787 260 [[LTDC internal peripheral | LTDC]]
rect 24 258 100 282  [[TIM internal peripheral | TIM]]
rect 108 258 184 282  [[TIM internal peripheral | TIM]]
rect 190 258 266 282  [[LPTIM internal peripheral | LPTIM]]
rect 273 258 348 282  [[LPTIM internal peripheral | LPTIM]]
rect 439 258 515 282  [[GPIO internal peripheral | GPIO]]
rect 9 357 85 381  [[RCC internal peripheral | RCC]]
rect 9 386 85 411 [[STM32MP13 PWR internal peripheral | PWR]]
rect 9 416 85 440 [[DTS internal peripheral | DTS]]
rect 98 327 173 351 [[DDRPERFM internal peripheral | DDRPERFM]]
rect 98 357 173 381 [[DBGMCU internal peripheral | DBGMCU]]
rect 98 386 173 411 [[HDP internal peripheral | HDP]]
rect 190 327 266 351 [[BSEC internal peripheral | BSEC]]
rect 190 357 266 381 [[QUADSPI internal peripheral | QUADSPI]]
rect 190 386 266 411 [[FMC internal peripheral | FMC]]
rect 190 416 266 440 [[SDMMC internal peripheral | SDMMC]]
rect 281 357 357 381 [[USBH internal peripheral | USBH]]
rect 281 386 357 411 [[OTG internal peripheral | OTG]]
rect 281 416 357 440 [[USBPHYC internal peripheral | USBPHYC]]
rect 367 313 442 338 [[USART internal peripheral | USART]]
rect 446 313 521 338 [[USART internal peripheral | USART]]
rect 367 343 442 368 [[USART internal peripheral | USART]]
rect 367 374 442 398 [[I2C internal peripheral | I2C]]
rect 446 374 521 398 [[I2C internal peripheral | I2C]]
rect 524 313 600 338 [[SPI internal peripheral | SPI]]
rect 524 343 600 368 [[SPI internal peripheral | SPI]]
rect 367 416 442 440 [[FDCAN internal peripheral | FDCAN]]
rect 446 416 521 440 [[ETH internal peripheral | ETH]]
rect 630 313 705 338 [[STM32MP13 VREFBUF internal peripheral | VREFBUF]]
rect 630 343 705 368 [[DFSDM internal peripheral | DFSDM]]
rect 712 343 787 368 [[STM32MP13 ADC internal peripheral | ADC]]
rect 630 388 705 411 [[SPI internal peripheral | SPI I2S]]
rect 712 388 787 411 [[SPI internal peripheral | SPI I2S]]
rect 630 416 705 440 [[SPDIFRX internal peripheral | SPDIFRX ]]
rect 712 416 787 440 [[SAI internal peripheral | SAI]]
}}
 
==Internal peripherals runtime assignment==
{{#lst:STM32MP1_internal_peripherals_assignment_table_template|stm32mp13_runtime}}
{{#lst:STM32MP13_ADC_internal_peripheral|stm32mp13_runtime}}
{{#lst:DFSDM_internal_peripheral|stm32mp13_runtime}}
{{#lst:STM32MP13_VREFBUF_internal_peripheral|stm32mp13_runtime}}
{{#lst:SAI internal peripheral|stm32mp13_runtime}}
{{#lst:SPDIFRX_internal_peripheral|stm32mp13_runtime}}
{{#lst:RTC_internal_peripheral|stm32mp13_runtime}}
{{#lst:STGEN_internal_peripheral|stm32mp13_runtime}}
{{#lst:SYSCFG_internal_peripheral|stm32mp13_runtime}}
{{#lst:DMA_internal_peripheral|stm32mp13_runtime}}
{{#lst:DMAMUX_internal_peripheral|stm32mp13_runtime}}
{{#lst:MDMA_internal_peripheral|stm32mp13_runtime}}
{{#lst:EXTI_internal_peripheral|stm32mp13_runtime}}
{{#lst:GIC_internal_peripheral|stm32mp13_runtime}}
{{#lst:GPIO internal peripheral|stm32mp13_runtime}}
{{#lst:BKPSRAM internal memory|stm32mp13_runtime}}
{{#lst:DDRCTRL and DDRPHYC internal peripherals|stm32mp13_runtime}}
{{#lst:STM32MP13 SRAM internal memory|stm32mp13_runtime}}
{{#lst:SYSRAM_internal_memory|stm32mp13_runtime}}
{{#lst:LPTIM_internal_peripheral|stm32mp13_runtime}}
{{#lst:TIM_internal_peripheral|stm32mp13_runtime}}
{{#lst:IWDG_internal_peripheral|stm32mp13_runtime}}
{{#lst:OTG_internal_peripheral|stm32mp13_runtime}}
{{#lst:USBH_internal_peripheral|stm32mp13_runtime}}
{{#lst:USBPHYC internal peripheral|stm32mp13_runtime}}
{{#lst:I2C_internal_peripheral|stm32mp13_runtime}}
{{#lst:SPI_internal_peripheral|stm32mp13_runtime}}
{{#lst:USART_internal_peripheral|stm32mp13_runtime}}
{{#lst:FMC internal peripheral|stm32mp13_runtime}}
{{#lst:QUADSPI internal peripheral|stm32mp13_runtime}}
{{#lst:SDMMC internal peripheral|stm32mp13_runtime}}
{{#lst:ETH internal peripheral|stm32mp13_runtime}}
{{#lst:FDCAN internal peripheral|stm32mp13_runtime}}
{{#lst:DTS_internal_peripheral|stm32mp13_runtime}}
{{#lst:STM32MP13_PWR_internal_peripheral|stm32mp13_runtime}}
{{#lst:RCC_internal_peripheral|stm32mp13_runtime}}
{{#lst:BSEC_internal_peripheral|stm32mp13_runtime}}
{{#lst:CRC_internal_peripheral|stm32mp13_runtime}}
{{#lst:CRYP_internal_peripheral|stm32mp13_runtime}}
{{#lst:ETZPC_internal_peripheral|stm32mp13_runtime}}
{{#lst:HASH_internal_peripheral|stm32mp13_runtime}}
{{#lst:DDRMCE_internal_peripheral|stm32mp13_runtime}}
{{#lst:PKA_internal_peripheral|stm32mp13_runtime}}
{{#lst:RNG_internal_peripheral|stm32mp13_runtime}}
{{#lst:SAES_internal_peripheral|stm32mp13_runtime}}
{{#lst:TAMP_internal_peripheral|stm32mp13_runtime}}
{{#lst:TZC_internal_peripheral|stm32mp13_runtime}}
{{#lst:DBGMCU_internal_peripheral|stm32mp13_runtime}}
{{#lst:DDRPERFM_internal_peripheral|stm32mp13_runtime}}
{{#lst:HDP_internal_peripheral|stm32mp13_runtime}}
{{#lst:DCMIPP_internal_peripheral|stm32mp13_runtime}}
{{#lst:LTDC_internal_peripheral|stm32mp13_runtime}}
|}
 
==Internal peripherals boot time assignment==
{{#lst:STM32MP1_internal_peripherals_assignment_table_template|stm32mp1_boottime}}
{{#lst:STM32MP13_ADC_internal_peripheral|stm32mp13_boottime}}
{{#lst:DFSDM_internal_peripheral|stm32mp13_boottime}}
{{#lst:STM32MP13_VREFBUF_internal_peripheral|stm32mp13_boottime}}
{{#lst:SAI internal peripheral|stm32mp13_boottime}}
{{#lst:SPDIFRX_internal_peripheral|stm32mp13_boottime}}
{{#lst:RTC_internal_peripheral|stm32mp13_boottime}}
{{#lst:STGEN_internal_peripheral|stm32mp13_boottime}}
{{#lst:SYSCFG_internal_peripheral|stm32mp13_boottime}}
{{#lst:DMA_internal_peripheral|stm32mp13_boottime}}
{{#lst:DMAMUX_internal_peripheral|stm32mp13_boottime}}
{{#lst:MDMA_internal_peripheral|stm32mp13_boottime}}
{{#lst:EXTI_internal_peripheral|stm32mp13_boottime}}
{{#lst:GIC_internal_peripheral|stm32mp13_boottime}}
{{#lst:GPIO internal peripheral|stm32mp13_boottime}}
{{#lst:BKPSRAM internal memory|stm32mp13_boottime}}
{{#lst:DDRCTRL and DDRPHYC internal peripherals|stm32mp13_boottime}}
{{#lst:STM32MP13 SRAM internal memory|stm32mp13_boottime}}
{{#lst:SYSRAM_internal_memory|stm32mp13_boottime}}
{{#lst:LPTIM_internal_peripheral|stm32mp13_boottime}}
{{#lst:TIM_internal_peripheral|stm32mp13_boottime}}
{{#lst:IWDG_internal_peripheral|stm32mp13_boottime}}
{{#lst:OTG_internal_peripheral|stm32mp13_boottime}}
{{#lst:USBH_internal_peripheral|stm32mp13_boottime}}
{{#lst:USBPHYC internal peripheral|stm32mp13_boottime}}
{{#lst:I2C_internal_peripheral|stm32mp13_boottime}}
{{#lst:SPI_internal_peripheral|stm32mp13_boottime}}
{{#lst:USART_internal_peripheral|stm32mp13_boottime}}
{{#lst:FMC internal peripheral|stm32mp13_boottime}}
{{#lst:QUADSPI internal peripheral|stm32mp13_boottime}}
{{#lst:SDMMC internal peripheral|stm32mp13_boottime}}
{{#lst:ETH internal peripheral|stm32mp13_boottime}}
{{#lst:FDCAN internal peripheral|stm32mp13_boottime}}
{{#lst:DTS_internal_peripheral|stm32mp13_boottime}}
{{#lst:STM32MP13_PWR_internal_peripheral|stm32mp13_boottime}}
{{#lst:RCC_internal_peripheral|stm32mp13_boottime}}
{{#lst:BSEC_internal_peripheral|stm32mp13_boottime}}
{{#lst:CRC_internal_peripheral|stm32mp13_boottime}}
{{#lst:CRYP_internal_peripheral|stm32mp13_boottime}}
{{#lst:ETZPC_internal_peripheral|stm32mp13_boottime}}
{{#lst:HASH_internal_peripheral|stm32mp13_boottime}}
{{#lst:DDRMCE_internal_peripheral|stm32mp13_boottime}}
{{#lst:PKA_internal_peripheral|stm32mp13_boottime}}
{{#lst:RNG_internal_peripheral|stm32mp13_boottime}}
{{#lst:SAES_internal_peripheral|stm32mp13_boottime}}
{{#lst:TAMP_internal_peripheral|stm32mp13_boottime}}
{{#lst:TZC_internal_peripheral|stm32mp13_boottime}}
{{#lst:DBGMCU_internal_peripheral|stm32mp13_boottime}}
{{#lst:DDRPERFM_internal_peripheral|stm32mp13_boottime}}
{{#lst:HDP_internal_peripheral|stm32mp13_boottime}}
{{#lst:DCMIPP_internal_peripheral|stm32mp13_boottime}}
{{#lst:LTDC_internal_peripheral|stm32mp13_boottime}}
|}
 
==References==
<references/>


<noinclude>
<noinclude>
[[Category:Peripherals overview]]
[[Category:Peripherals overview]]
[[Category:STM32MP13]]
{{PublicationRequestId | 24132 |2022-07-27 |}}
</noinclude>
</noinclude>

Latest revision as of 16:19, 7 October 2024

Applicable for STM32MP13x lines


This article lists all internal peripherals embedded in STM32MP13x lines More info.png and shows the assignment possibilities to the execution contexts for each one of them.
From this article, you can also access to individual peripheral articles with information related to the overview and configuration aspects.


Warning DB.png Important
This article has be written in scope of STM32 MPU OpenSTLinux Embedded software.

For the STM32CubeMP13 Package (running on the Arm® Cortex®-A7 processor), the peripheral assignment table is also applicable.
All supported peripherals are, by default, assigned to the secure context, and it is possible to assign them to the non-secure context thanks to STM32CubeMX.
or
The default peripheral assignments for STM32CubeMP13 are described in Arm® Cortex®-A secure column of this table. As usual, the customer can change this configuration to switch in Arm® Cortex®-A non-secure context using STM32CubeMX


1. Internal peripherals overview[edit | edit source]

The figure below shows all peripherals embedded in STM32MP13x lines More info.png, grouped per functional domains that are reused in many places of this wiki to structure the articles.

Several execution contexts exist on STM32MP13x lines More info.png[1], corresponding to the Arm Cortex-A7 security modes:

  •  Arm Cortex-A7 secure  (Trustzone), running ROM code and TF-A BL2 at boot time, and running OP-TEE at runtime
  •  Arm Cortex-A7 non secure , running U-Boot at boot time, and running Linux at runtime

Some peripherals can be strictly assigned to one execution context, this is the case for most of the peripherals, like USART or I2C.
Other ones can be shared between several execution contexts, this is the case for system peripherals like PWR or RCC.

The legend below shows how assigned and shared peripherals are identified in the assignment diagram that follows.

STM32MP13IPsOverview legend.png

Both the diagram below and the following summary table (in Internal peripherals runtime assignment and Internal peripherals boot time assignment chapters below) are clickable in order to jump to each peripheral overview article and get more detailed information (like the software frameworks used to control them). They list STMicroelectronics recommendations. The STM32MP13 reference manual [2] may expose more possibilities then what is shown here.


Cortex-A7STGENSYSCFGRTCEXTIGICIWDG1IWDG2DMAMUX1DMAMUX2DMAMUX2DMA1DMA2DMA3MDMASAESETZPCDDRMCEPKATZCRNGHASHTAMPCRYPCRCSYSRAMDDR via DDRCTRLBKPSRAMSRAM1SRAM2SRAM3DCMIPPLTDCTIMTIMLPTIMLPTIMGPIORCCPWRDTSDDRPERFMDBGMCUHDPBSECQUADSPIFMCSDMMCUSBHOTGUSBPHYCUSARTUSARTUSARTI2CI2CSPISPIFDCANETHVREFBUFDFSDMADCSPI I2SSPI I2SSPDIFRXSAI
STM32MP13 internal peripherals overview

2. Internal peripherals runtime assignment[edit | edit source]

Click on How to.png to expand or collapse the legend...

STM32MP13 internal peripherals

Check boxes illustrate the possible peripheral allocations supported by the OpenSTLinux BSP:

  • means that the peripheral can be assigned to the given runtime context, but this configuration is not supported in OpenSTLinux BSP.
  • means that the peripheral can be assigned to the given runtime context.
  • means that the peripheral is assigned by default to the given runtime context and that the peripheral is mandatory for the OpenSTLinux BSP.
  • is used for system peripherals that cannot be unchecked because they are hardware connected in the device.

Refer to How to assign an internal peripheral to an execution context for more information on how to assign peripherals manually or via STM32CubeMX.
The present chapter describes STMicroelectronics recommendations or choice of implementation. Additional possibilities might be described in STM32MP13 reference manuals.

Domain Peripheral Runtime allocation Comment How to.png
Instance Cortex-A7
secure
(OP-TEE)
Cortex-A7
nonsecure
(Linux)
Analog ADC ADC1 Assignment (single choice)
ADC2 Assignment (single choice)
ADC2 can be used for system supplies monitoring
Analog DFSDM DFSDM Assignment (single choice)
Analog VREFBUF VREFBUF Assignment (single choice)
OP-TEE offers SCMI regulator service to manage VREFBUF
Audio SAI SAI1 Assignment (single choice)
SAI2 Assignment (single choice)
Audio SPDIFRX SPDIFRX Assignment (single choice)
Core RTC RTC RTC is mandatory to resynchronize STGEN after exiting low-power modes.
Core STGEN STGEN
Core SYSCFG SYSCFG
Core/DMA DMA DMA1 Assignment (single choice)
DMA2 Assignment (single choice)
DMA3 Assignment (single choice)
Core/DMA DMAMUX DMAMUX1 Assignment (single choice)
DMAMUX2 Assignment (single choice)
Core/DMA MDMA MDMA Shareable (multiple choices supported)
Core/Interrupts EXTI EXTI
Core/Interrupts GIC GIC
Core/IOs GPIO GPIOA-I The pins can individually be secured
Core/RAM BKPSRAM BKPSRAM Assignment (single choice)
Core/RAM DDRCTRL DDR
Core/RAM SRAM SRAM1 Assignment (between A7 S and A7 NS)
SRAM2 Assignment (between A7 S and A7 NS)
SRAM3 Assignment (between A7 S and A7 NS)
Core/RAM SYSRAM SYSRAM Shareable (multiple choices supported)

Secure section required for low power entry and exit

Core/Timers LPTIM LPTIM1
LPTIM2 Assignment (single choice)
LPTIM3 Assignment (single choice)
LPTIM3 can be used for HSE monitoring.
LPTIM4
LPTIM5
Core/Timers TIM TIM1 (APB2 group)
TIM2 (APB1 group)
TIM3 (APB1 group)
TIM4 (APB1 group)
TIM5 (APB1 group)
TIM6 (APB1 group)
TIM7 (APB1 group)
TIM8 (APB2 group)
TIM12 (APB6 group) Assignment (single choice)
TIM12 or TIM15 can be used for HSI/CSI calibration[3]
TIM13 (APB6 group) Assignment (single choice)
TIM14 (APB6 group) Assignment (single choice)
TIM15 (APB6 group) Assignment (single choice)
TIM12 or TIM15 can be used for HSI/CSI calibration[3]
TIM16 (APB6 group) Assignment (single choice)
TIM17 (APB6 group) Assignment (single choice)
Core/Watchdog IWDG IWDG1
IWDG2 Shared (none or both):
  • Cortex-A7 non secure for reload
  • Cortex-A7 secure for early interrupt handling
High speed interface OTG (USB OTG) OTG (USB OTG) Assignment (single choice)
High speed interface USBH (USB Host) USBH (USB Host)
High speed interface USBPHYC (USB HS PHY controller) USBPHYC (USB HS PHY controller) Assignment (single choice)
Low speed interface I2C I2C1
I2C2
I2C3 Assignment (single choice)
I2C4 Assignment (single choice).
Used for PMIC control on ST boards.
I2C5 Assignment (single choice)
Low speed interface
or
audio
SPI SPI2S1
SPI2S2
SPI2S3
SPI2S4 Assignment (single choice)
SPI5 Assignment (single choice)
Low speed interface USART USART1 Assignment (single choice)
USART2 Assignment (single choice)
USART3
UART4
UART5
USART6
UART7
UART8
Mass storage FMC FMC Assignment (single choice)
Mass storage QUADSPI QUADSPI Assignment (single choice)
Mass storage SDMMC SDMMC1 Assignment (single choice)
SDMMC2 Assignment (single choice)
Networking ETH ETH1 Assignment (single choice)
ETH2 Assignment (single choice)
Networking FDCAN FDCAN1
FDCAN2
Power & Thermal DTS DTS
Power & Thermal PWR PWR
Power & Thermal RCC RCC
Security BSEC BSEC
Security CRC CRC
Security CRYP CRYP Assignment (single choice)
Security ETZPC ETZPC
Security HASH HASH Assignment (single choice)
Security DDRMCE DDRMCE
Security PKA PKA Assignment (single choice)
Security RNG RNG Assignment (single choice)
Security SAES SAES Assignment (single choice)
Security TAMP TAMP
Security TZC TZC
Trace & Debug DBGMCU DBGMCU
Trace & Debug DDRPERFM DDRPERFM
Trace & Debug HDP HDP
Visual DCMIPP DCMIPP
Visual LTDC LTDC Shareable (multiple choices supported)

3. Internal peripherals boot time assignment[edit | edit source]

Click on How to.png to expand or collapse the legend...

Check boxes illustrate the possible peripheral allocations supported by the OpenSTLinux BSP:

  • means that the peripheral can be assigned to the given boot time context, but this configuration is not supported in OpenSTLinux BSP.
  • means that the peripheral can be assigned to the given boot time context.
  • means that the peripheral is assigned by default to the given boot time context and that the peripheral is mandatory for the OpenSTLinux BSP.
  • is used for system peripherals that cannot be unchecked because they are hardware connected in the device.

The present chapter describes STMicroelectronics recommendations or choice of implementation. Additional possibilities might be described in STM32 MPU reference manuals.

Domain Peripheral Boot time allocation Comment How to.png
Instance Cortex-A7
secure
(ROM code)
Cortex-A7
secure
(TF-A BL2)
Cortex-A7
nonsecure
(U-Boot)
Analog ADC Any instance
Analog VREFBUF VREFBUF OP-TEE offers SCMI regulator service to manage VREFBUF
Core RTC RTC
Core STGEN STGEN
Core SYSCFG SYSCFG
Core/IOs GPIO GPIOA-I The pins can individually be secured
Core/RAM BKPSRAM BKPSRAM
Core/RAM DDRCTRL DDR
Core/RAM SRAM Any instance SRAM first used by ROM code, then TF-A BL2. After assignment free to user
Core/RAM SYSRAM SYSRAM
Core/Timers LPTIM LPTIM1
LPTIM2
LPTIM3
LPTIM4
LPTIM5
Core/Timers TIM TIMx (x = 1 to 8,
APB2 group)
TIMx (x = 2 to 7,
APB1 group)
TIMx (x = 12 to 17,
APB6 group)
Core/Watchdog IWDG Any instance
High speed interface OTG (USB OTG) OTG (USB OTG) The OTG can be used by ROM code, FSBL and SSBL in DFU mode to support serial boot.
It can be used also in U-boot with command line tools.
High speed interface USBH (USB Host) USBH (USB Host)
High speed interface USBPHYC (USB HS PHY controller) USBPHYC (USB HS PHY controller) The USBPHYC can be used by ROM code, FSBL and SSBL in DFU mode to support serial boot.
It can be used also in U-boot by OTG and USBH with command line tools.
Low speed interface I2C Any instance
Low speed interface USART Any instance
Mass storage FMC FMC
Mass storage QUADSPI QUADSPI
Mass storage SDMMC SDMMC1
SDMMC2
Networking ETH Any instance Assignment (single choice)
Power & Thermal PWR PWR
Power & Thermal RCC RCC
Security BSEC BSEC
Security CRYP CRYP ROM code allocation is managed with the bit 7 in OTP 9
Security ETZPC Any instance ETZPC configuration is set by OP-TEE
Security HASH HASH
Security DDRMCE DDRMCE
Security PKA PKA Assignment is mandatory only for secure boot
Security RNG RNG Required for DPA peripheral protection
Security SAES SAES ROM code allocation is managed with the bit 7 in OTP 9
Security TAMP TAMP
Security TZC TZC
Trace & Debug DBGMCU DBGMCU
Visual LTDC LTDC

4. References[edit | edit source]