• 32-bit dual-core Arm® Cortex®-A7
– L1 32-Kbyte I / 32-Kbyte D for each core
– 256-Kbyte unified level 2 cache
–Arm
• 32-bit Arm
– Up to 209 MHz (Up to 703 CoreMark
Memories
• External DDR memory up to 1 Gbyte
– up to LPDDR2/LPDDR3-1066 16/32-bit
– up to DDR3/DDR3L-1066 16/32-bit
• 708 Kbytes of internal SRAM: 256 Kbytes of
AXI SYSRAM + 384 Kbytes of AHB SRAM +
64 Kbytes of AHB SRAM in Backup domain
and 4 Kbytes of SRAM in Backup domain
• Dual mode Quad-SPI memory interface
• Flexible external memory controller with up to
16-bit data bus: parallel interface to connect
external ICs and SLC NAND memories with up
to 8-bit ECC
Security/safety
• Secure boot, TrustZone® peripherals, active
tamper
• Cortex
Reset and power management
• 1.71 V to 3.6 V I/Os supply (5 V-tolerant I/Os)
• POR, PDR, PVD and BOR
• On-chip LDOs (RETRAM, BKPSRAM, DSI
1.2 V, USB 1.8 V, 1.1 V)
• Backup regulator (~0.9 V)
• Internal temperature sensors
• Low-power modes: Sleep, Stop and Standby
®
NEON™ and Arm® TrustZone®
®
Cortex®-M4 with FPU/MPU
®
-M4 resources isolation
®
)
STM32MP157C/F
Datasheet - production data
• DDR memory retention in Standby mode
• Controls for PMIC companion chip
Low-power consumption
• Total current consumption down to 2 µA
(Standby mode, no RTC, no LSE, no
BKPSRAM, no RETRAM)
This datasheet provides the ordering information and mechanical device characteristics of
the STM32MP157C/F microprocessors.
This document should be read in conjunction with the STM32MP157 reference manual
(RM0436), available from the STMicroelectronics website www.st.com.
For information on the Arm
and Cortex
®
-M4 Technical Reference Manuals.
®(a)
Cortex®-A7 and Cortex®-M4 cores, refer to the Cortex®-A7
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
DS12505 Rev 513/260
59
DescriptionSTM32MP157C/F
2 Description
The STM32MP157C/F devices are based on the high-performance dual-core Arm®
®
Cortex
includes a 32-Kbyte L1 instruction cache for each CPU, a 32-Kbyte L1 data cache for each
CPU and a 256-Kbyte level2 cache. The Cortex-A7 processor is a very energy-efficient
application processor designed to provide rich performance in high-end wearables, and
other low-power embedded and consumer applications. It provides up to 20% more single
thread performance than the Cortex-A5 and provides similar performance than the CortexA9.
-A7 32-bit RISC core operating at up to 800 MHz. The Cortex-A7 processor
The Cortex-A7 incorporates all features of the high-performance Cortex-A15 and CortexA17 processors, including virtualization support in hardware, NEON
™
, and 128-bit AMBA®4
AXI bus interface.
The STM32MP157C/F devices also embed a Cortex
to 209 MHz frequency. Cortex-M4 core features a floating point unit (FPU) single precision
which supports Arm
®
Cortex
-M4 supports a full set of DSP instructions and a memory protection unit (MPU)
®
single-precision data-processing instructions and data types. The
®
-M4 32-bit RISC core operating at up
which enhances application security.
The STM32MP157C/F devices also embed a 3D graphic processing unit
(Vivante
®
- OpenGL® ES 2.0) running at up to 533 MHz, with performances up to 26
Mtriangle/s, 133 Mpixel/s.
The STM32MP157C/F devices provide an external SDRAM interface supporting external
memories up to 8-Gbit density (1 Gbyte), 16 or 32-bit LPDDR2/LPDDR3 or DDR3/DDR3L
up to 533 MHz.
The STM32MP157C/F devices incorporate high-speed embedded memories with
708 Kbytes of Internal SRAM (including 256 Kbytes of AXI SYSRAM, 3 banks of 128 Kbytes
each of AHB SRAM, 64 Kbytes of AHB SRAM in backup domain and 4 Kbytes of SRAM in
backup domain), as well as an extensive range of enhanced I/Os and peripherals connected
to APB buses, AHB buses, a 32-bit multi-AHB bus matrix and a 64-bit multi layer AXI
interconnect supporting internal and external memories access.
14/260DS12505 Rev 5
STM32MP157C/FDescription
All the devices offer two ADCs, two DACs, a low-power RTC, 12 general-purpose 16-bit
timers, two PWM timers for motor control, five low-power timers, a true random number
generator (RNG), and a cryptographic acceleration cell. The devices support six digital
filters for external sigma delta modulators (DFSDM). They also feature standard and
advanced communication interfaces.
•Standard peripherals
–Six I
2
Cs
–Four USARTs and four UARTs
–Six SPIs, three I
2
I
S peripherals can be clocked via a dedicated internal audio PLL or via an
2
Ss full-duplex master/slave. To achieve audio class accuracy, the
external clock to allow synchronization.
–Four SAI serial audio interfaces
–One SPDIF Rx interface
–Management data input/output slave (MDIOS)
–Three SDMMC interfaces
–An USB high-speed Host with two ports two high-speed PHYs and a USB OTG
high-speed with full-speed PHY or high-speed PHY shared with second port of
USB Host.
–Two FDCAN interface, including one supporting TTCAN mode
–A Gigabit Ethernet interface
–HDMI-CEC
•Advanced peripherals including
–A flexible memory control (FMC) interface
–A Quad-SPI Flash memory interface
–A camera interface for CMOS sensors
–An LCD-TFT display controller
–A DSI Host interface.
Refer to Tab le 1: STM32MP157C/F features and peripheral counts for the list of peripherals
available on each part number.
A comprehensive set of power-saving mode allows the design of low-power applications.
The STM32MP157C/F devices are proposed in 4 packages ranging from 257 to 448 balls
with pitch 0.5 mm to 0.8 mm. The set of included peripherals changes with the device
chosen.
These features make the STM32MP157C/F suitable for a wide range of consumer,
industrial, white goods and medical applications.
Figure 1 shows the general block diagram of the device family.
DS12505 Rev 515/260
59
DescriptionSTM32MP157C/F
Table 1. STM32MP157C/F features and peripheral counts
Including the following securable1 × USART, 1 × SPI, 2 × I2C
1 × USART, 1 × SPI, 2 × I2C
on securable GPIOs
-
SDMMC (SD, SDIO, e•MMC)3 (8 + 8 + 4 bits), e•MMC or SD can be a boot sourceBoot
QuadSPIYes (dual-quad), can be a boot sourceBoot
DS12505 Rev 517/260
59
DescriptionSTM32MP157C/F
Table 1. STM32MP157C/F features and peripheral counts (continued)
Features
STM32MP157CADxx
STM32MP157FADxx
STM32MP157CABxx
STM32MP157FABxx
STM32MP157CACxx
STM32MP157FACxx
STM32MP157CAAxx
STM32MP157FAAxx
TFBGA257LFBGA354TFBGA361LFBGA448
Parallel address/data 8/16-bit-4 × CS, up to 4 × 64 Mbyte
FMC
Parallel AD-Mux 8/16-bit4 × CS, up to 4 × 64 Mbytes
boot
NAND 8/16-bitYes, 1 × CS, SLC, BCH4/8, can be a boot sourceBoot
Gigabit Ethernet-
10/100M EthernetMII, RMII with PTP and EEE
LCD-TFTParallel interface
Display serial interface (DSI)
Up to 24-bit data, up to 90 MHz pixel clock
(up to 1366 × 768 60 fps or up to 1920 × 1080 30 fps)
2 × data lanes 1 GHz each
(up to 1366 × 768 60 fps or up to 1920 × 1080 30 fps)
MII, RMII, GMII, RGMII with
PTP and EEE
DMA3 instances (1 securable), 48 physical channels in total-
Cryptography
Hash
dual instances (secure and non-secure)
dual instances (secure and non-secure)
DES, TDES, AES-256
SHA-256, MD5, HMAC
True random number generatorTrue-RNG, dual instances (secure and non-secure)-
Fuses (one-time programmable)3072 effective bits (secure, >1500 bits available for user)-
Camera interface Bus width14-bit-
Miscellaneous
No
-
-
-
-
-
GPIOs with interrupt (total count)98148176
Securable GPIOs-8
-
Wakeup pins46
Tamper pins (active tamper)2 (1)3 (1)
DFSDM8 input channels with 6 filters-
Up to 16-bit synchronized ADC2 (up to 3.6/4/4.5/5/6 Msps on 16/14/12/10/8-bit each)
Low noise 16 bit (differential)-2 (1)
-
16 bit (differential)17 (7)20 (9)
ADC channels in total
(2)
1722
12-bit DAC2-
Internal ADC/DAC VREF1.5 V, 1.8 V, 2.048 V, 2.5 V or VREF+ input
-
VREF+ input pinYes
1. With inner matrix balls having 0.65 mm pitch to allow optimized PCB routing for supplies.
18/260DS12505 Rev 5
STM32MP157C/FDescription
2. In addition, there is also 6 internal channels for temperature, internal voltage reference, V
acquisitions.
DDCORE
, V
/4, DAC1 or DAC2
BAT
DS12505 Rev 519/260
59
DescriptionSTM32MP157C/F
MSv47445V4
@VDDA
@VDD_ANA
@VDDA
@VSW
@VDD
@VSW
@VDDA
@VSW
OTP Fuses
T
T
T
T
T
@VSW
SYSRAM 256KB
ROM 128KB
TIM3
ADC1
ADC2
64 bits
32 bits
32 bits
AXI
AHB
APB
64bits
AXI master
T
TrustZone
®
security protection
@VDD
Voltage Regulators
@VDD_ANA
Supply Supervision
32 bits
AHB master
BKPSRAM 4KB
STM
RETSRAM 64KB
DTS
(Digital temperature sensor)
@VDD_PLL
PLL1/2/3/4
@VDD
HSE (XTAL)
RCC
RNG2
DCMI
(Camera I/F)
MDIOS
CRC2
HSEM
PWR
SDMMC3
OTG
(HS/FS)
HASH2
T
USBPHYC
(USB 2 x PHY control)
FIFO
16b
16b
Interface
GPIOA
GPIOB
GPIOC
GPIOD
GPIOE
GPIOF
GPIOG
GPIOH
GPIOI
GPIOJ
GPIOK
16b
16b
16b
16b
16b
16b
16b
16b
16b
16b
8b
SRAM1 128KB
SRAM2 128KB
SRAM3/SRAM4 64K/64K
HSI
CSILSI
DMA1
8 Streams
DMA2
8 Streams
FIFOFIFO
2
17
4
20
14
9
16
16
16
16
16
16
16
16
16
16
8
5
TIM4
16b
5
TIM6
16b
TIM7
16b
TIM12
16b
2
TIM13
16b
1
TIM14
16b
1
TIM2
32b
5
TIM5
32b
5
LPTIM1
16b
4
2
USART2
Smartcard
IrDA
5
USART3
Smartcard
IrDA
5
PLLUSB
FIFOFIFO
5
T
4b
10
PHY
FIFO
I2C4 / SMBUS
SPI6
USART1
IWDG1
BSEC
ETZPC
3
4
5
Smartcard
IrDA
FIFO FIFO
RTC / AWU
LSE (32kHz XTAL)
TAMP / Backup Regs
T
2
2
3
RNG1
HASH1
CRC1
T
T
LTDC
(LCD)
SDMMC1
31
29
14
SDMMC2
14
8b
8b
FIFOFIFOFIFO
MDMA
32 Channels
T
QUADSPI (dual)
DDRCTRL
LPDDR2/3
DDR3/3L
FMC
async
37
13
77
GPIOZ
8b
8
16b
AHB2APB
Trace port
APB1 (104.5 MHz)
APB3 (104.5 MHz)
T
24b
8b
AHB2APB
2x2
Matrix
AHB2APB
IC Supplies
16b
AXIM: ARM 64-bit AXI interconnect (266 MHz)
async
DLYBSD1
(SDMMC1 DLY control)
DLYBSD2
(SDMMC2 DLY control)
DLYBSD3
(SDMMC3 DLY control)
async
DLYBQS
(QUADSPI DLY control)
17
16b
FIFOFIFO
14b
DMAMUX1
DDRPHYC
AXIMC
T
TT
T
8KB
FIFO
Sys. Timing
GENeration
APB5 (133MHz)
debug TimeStamp
GENerator TSGEN
DLYDLYDLY
DLY
(R)(G)MII
32b PHY
APB4
MLAHB: ARM 32-bit multi-AHB bus matrix (209 MHz)
T
@VSW
IWDG2
T
I2C6 / SMBUS
3
USBH
(2 x HS Host)
2
2
2 x PHY
FIFO
STGENC
STGENR
EXTI
176
16ext
T
T
T
T
SYSCFG
VREFBUF
TIM1 / PWM
TIM8 / PWM
10
10
16b
16b
TIM15
4
16b
TIM16
16b
TIM17
16b
3
3
1
LPTIM2
16b
4
LPTIM3
16b
1
LPTIM4
16b
1
LPTIM5
16b
1
SAI4
13
FIFO
3
HDP
8
8b
SAI1
13
FIFO
SAI2
8
FIFO
SAI3
8
FIFO
UART4
4
UART5
4
UART7
4
UART8
4
DAC1
DAC2
12b
12b
Interface
1
1
I2C1 / SMBUS
3
Filter
I2C2 / SMBUS
3
Filter
I2C3 / SMBUS
3
Filter
I2C5 / SMBUS
3
Filter
CEC (HDMI-CEC)
SPDIFRX
1
4
SPI2 / I2S2
SPI3 / I2S3
5
5
FIFOFIFOFIFOFIFOFIFOFIFOFIFO
SPI4
4
SPI5
4
USART6
5
Smartcard
IrDA
FIFOFIFOFIFO
SPI1 / I2S1
5
FIFO
WWDG1
4ch
DFSDM1
17
8ch
AHB2APB
BOOT
pins
T
T
T
128 bits
CNT (Timer)
T
ETM
T
Cortex-A7 CPU
650/800
(1)
MHz + MMU +
FPU + NEON
T
32K I$
32K D$
T
ETH1 GMAC
10/100/1000
FIFO
DAP
(JTAG / SWD)
T
T
DDRPERFM
async
CRYP2
DAP bus
CRYP1
IPCC
T
TZC
T
T
FIFO
GPU
async
Shader
(533 MHz)
FDCAN1 (TT)
FDCAN2
Buffer 10KBCCU
2
2
APB2 (104.5 MHz)
APB2 (104.5 MHz)
APB2 (104.5 MHz)
PLLDSI
DSI
PHY
6
I-Bus
D-Bus
S-Bus
SYSTICK
NVIC
Cortex-M4 CPU 209 MHz
+ MPU + FPU
GIC
ETM
CNT (Timer)
T
T
Cortex-A7 CPU
650/800
(1)
MHz + MMU +
FPU + NEON
T
32K I$
32K D$
256KB L2$ + SCU
T
T
1. STM32MP157C: 650 MHz, STM32MP157F: 800 MHz
Figure 1. STM32MP157C/F block diagram
20/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3 Functional overview
3.1 Dual-core Arm® Cortex®-A7 subsystem
3.1.1 Features
•ARMv7-A architecture
•32-Kbyte L1 instruction cache for each CPU
•32-Kbyte L1 data cache for each CPU
•256-Kbyte level2 cache
•Arm
•Arm
•Arm
•DSP and SIMD extensions
•VFPv4 floating-point
•Hardware virtualization support
•Embedded trace module (ETM)
•Integrated generic interrupt controller (GIC) with 256 shared peripheral interrupts
•Integrated generic timer (CNT)
®
+ Thumb®-2 instruction set
®
TrustZone® security technology
®
NEON™ Advanced SIMD
3.1.2 Overview
The Cortex-A7 processor is a very energy-efficient applications processor designed to
provide rich performance in high-end wearables, and other low-power embedded and
consumer applications. It provides up to 20 % more single thread performance than the
Cortex-A5 and provides similar performance than the Cortex-A9.
The Cortex-A7 incorporates all features of the high-performance Cortex-A15 and CortexA17 processors, including virtualization support in hardware, NEON
AXI bus interface.
The Cortex-A7 processor builds on the energy-efficient 8-stage pipeline of the Cortex-A5
processor. It also benefits from an integrated L2 cache designed for low-power, with lower
transaction latencies and improved OS support for cache maintenance. On top of this, there
is improved branch prediction and improved memory system performance, with 64-bit loadstore path, 128-bit AMBA 4 AXI buses and increased TLB size (256 entry, up from 128 entry
for Cortex-A9 and Cortex-A5), increasing performance for large workloads such as web
browsing.
Thumb-2 technology
Delivers the peak performance of traditional Arm® code while also providing up to a 30 %
reduction in memory requirement for instructions storage.
TrustZone technology
Ensures reliable implementation of security applications ranging from digital rights
management to electronic payment. Broad support from technology and industry partners.
™
, and 128-bit AMBA®4
DS12505 Rev 521/260
59
Functional overviewSTM32MP157C/F
NEON
NEON technology can accelerate multimedia and signal processing algorithms such as
video encode/decode, 2D/3D graphics, gaming, audio and speech processing, image
processing, telephony, and sound synthesis. The Cortex-A7 provides an engine that offers
both the performance and functionality of the Cortex-A7 floating-point unit (FPU) and an
implementation of the NEON advanced SIMD instruction set for further acceleration of
media and signal processing functions. The NEON extends the Cortex-A7 processor FPU to
provide a quad-MAC and additional 64-bit and 128-bit register set supporting a rich set of
SIMD operations over 8-, 16- and 32-bit integer and 32-bit floating-point data quantities.
Hardware virtualization
Highly efficient hardware support for data management and arbitration, whereby multiple
software environments and their applications are able to simultaneously access the system
capabilities. This enables the realization of devices that are robust, with virtual environments
that are well isolated from each other.
Optimized L1 caches
Performance and power optimized L1 caches combine minimal access latency techniques
to maximize performance and minimize power consumption. There is also the option of
cache coherence for enhanced inter-processor communication, or support of a rich SMP
capable OS for simplified multicore software development.
Integrated L2 cache controller
Provides low-latency and high-bandwidth access to cached memory in high-frequency, or to
reduce the power consumption associated with off-chip memory access.
Cortex-A7 floating-point unit (FPU)
The FPU provides high-performance single and double precision floating-point instructions
compatible with the Arm VFPv4 architecture that is software compatible with previous
generations of Arm floating-point coprocessor.
Snoop control unit (SCU)
The SCU is responsible for managing the interconnect, arbitration, communication, cache to
cache and system memory transfers, cache coherence and other capabilities for the
processor.
This system coherence also reduces software complexity involved in maintaining software
coherence within each OS driver.
Generic interrupt controller (GIC)
Implementing the standardized and architected interrupt controller, the GIC provides a rich
and flexible approach to inter-processor communication and the routing and prioritization of
system interrupts.
Supporting up to 288 independent interrupts, under software control, each interrupt can be
distributed across A7 cores, hardware prioritized, and routed between the operating system
and TrustZone software management layer.
22/260DS12505 Rev 5
STM32MP157C/FFunctional overview
This routing flexibility and the support for virtualization of interrupts into the operating
system, provides one of the key features required to enhance the capabilities of a solution
utilizing a hypervisor.
3.2 Arm® Cortex®-M4 with FPU
The Arm® Cortex®-M4 with FPU core is a 32-bit RISC processor that features exceptional
code-efficiency, delivering the high-performance expected from an Arm core in the memory
size usually associated with 8- and 16-bit devices.
The processor supports a set of DSP instructions which allow efficient signal processing and
complex algorithm execution.
Its single precision FPU (floating point unit) speeds up software development by using
metalanguage development tools, while avoiding saturation.
Note:Cortex-M4 with FPU core is binary compatible with the Cortex-M3 core.
Memory protection unit (MPU)
The memory protection unit (MPU) manages the Cortex®-M4 access rights and the
attributes of the system resources. It has to be programmed and enabled before use. Its
main purposes are to prevent an untrusted user program to accidentally corrupt data used
by the OS and/or by a privileged task, but also to protect data processes or read-protect
memory regions.
The MPU defines access rules for privileged accesses and user program accesses. It
allows the definition of up to 16 protected regions that can in turn be divided into up to 8
independent subregions, where region address, size, and attributes can be configured. The
protection area ranges from 32 bytes to 4
When an unauthorized access is performed, a memory management exception is
generated.
Gbytes of addressable memory.
3.3 Graphic processing unit (GPU)
The STM32MP157C/F includes a 3D graphics engine (Vivante).
The GPU is a dedicated graphics processing unit accelerating numerous 3D graphics
applications such as graphical user interface (GUI), menu display or animations.
It works together with an optimized software stack design for industry-standard APIs with
support for Android™ and Linux
®
embedded development platforms.
DS12505 Rev 523/260
59
Functional overviewSTM32MP157C/F
Hardware features:
•OpenGL ES 2.0 / 1.1 compliance, including extensions; OpenVG 1.1
•IEEE 32-bit floating-point pipeline
•Ultra-threaded, unified vertex and fragment (pixel) shaders
•Low memory bandwidth at both high and low data rates
•Low CPU loading
•Up to 12 programmable elements per vertex
•Dependent texture operation with high-performance
•Alpha blending
•Depth and stencil compare
•Support for 8 fragment shader simultaneous textures
•Support for 4 vertex shader simultaneous textures
•Point sampling, bi-linear sampling, tri-linear filtering, and cubic textures
•8 k x 8 k texture size and 8 k x 8 k rendering target
•4 Vertex DMA streams
API support:
•OpenGL ES 1.1 and 2.0
•OpenVG 1.1
•EGL 1.4
•OpenGL 2.1
Performance up to:
•26 Mtriangle/s
•133 Mpixel/s
24/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.4 Memories
3.4.1 External SDRAM
The STM32MP157C/F devices embed a controller for external SDRAM which support the
following devices
•LPDDR2 or LPDDR3, 16- or 32-bit data, up to 1 Gbyte, up to 533 MHz clock.
•DDR3 or DDR3L, 16- or 32-bit data, up to 1 Gbyte, up to 533 MHz clock.
3.4.2 Embedded SRAM
All devices feature:
•SYSRAM in MPU domain: 256 Kbytes
•SRAM1 in MCU domain: 128 Kbytes
•SRAM2 in MCU domain: 128 Kbytes
•SRAM3 in MCU domain: 64 Kbytes
•SRAM4 in MCU domain: 64 Kbytes
•RETRAM (retention RAM): 64 Kbytes
The content of this area can be retained in Standby or V
•BKPSRAM (backup SRAM): 4 Kbytes
The content of this area is protected against possible unwanted write accesses, and
can be retained in Standby or V
BAT
mode.
BKPSRAM can be defined (in ETZPC) as accessible by secure software only.
BAT
mode.
DS12505 Rev 525/260
59
Functional overviewSTM32MP157C/F
3.5 DDR3/DDR3L/LPDDR2/LPDDR3 controller (DDRCTRL)
DDRCTRL combined with DDRPHYC provides a complete memory interface solution for
DDR memory subsystem.
•Two 64-bit AMBA 4 AXI4 ports interface (XPI)
•AXI clock asynchronous to the controller
•Supported standards:
–JEDEC DDR3 SDRAM specification, JESD79-3E for DDR3/3L with 32-bit
interface
–JEDEC LPDDR2 SDRAM specification, JESD209-2E for LPDDR2 with 32-bit
interface
–JEDEC LPDDR3 SDRAM specification, JESD209-3B for LPDDR3 with 32-bit
interface
•Advanced scheduler and SDRAM command generator
•Programmable full data width (32-bit) or half data width (16-bit)
•Advanced QoS support with 3 traffic class on read and 2 traffic classes on write
•Options to avoid starvation of lower priority traffic
•Guaranteed coherency for write-after-read (WAR) and read-after-write (RAW) on AXI
ports
•Programmable support for burst length options (4, 8,16)
•Write combine to allow multiple writes to the same address to be combined into a
single write
•Single rank configuration
•Supports automatic SDRAM power-down entry and exit caused by lack of transaction
arrival for programmable time
•Supports automatic clock stop (LPDDR2/3) entry and exit caused by lack of transaction
arrival
•Supports automatic low power mode operation caused by lack of transaction arrival for
programmable time via hardware low power interface
•Programmable paging policy
•Supports automatic or under software control self-refresh entry and exit
•Support for deep power-down entry and exit under software control (LPDDR2)
•Support for explicit SDRAM mode register updates under software control
•Flexible address mapper logic to allow application specific mapping of row, column,
bank bits
•User-selectable refresh control options
•DDRPERFM associated block to help for performance monitoring and tuning
DDRCTRL and DDRPHYC can be defined (in ETZPC) as accessible by secure software
only.
26/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.6 TrustZone address space controller for DDR (TZC)
TZC is used to filter read/write accesses to DDR controller according to TrustZone rights
and according to non-secure master (NSAID) on up to 9 programmable regions.
•Configuration is supported by trusted software only
•2 filter units working concurrently
•9 regions:
–region 0 is always enabled and covers the whole address range.
–regions 1 to 8 have programmable base/end address and can be assigned to any
one or both filters.
•Secure and non-secure access permissions programmed per region
•Non-secure accesses are filtered according to NSAID
•Regions controlled by same filter must not overlap
•Fail modes with error and/or interrupt
•Acceptance capability = 256
•Gate keeper logic to enable and disable of each filter
•Speculative accesses
DS12505 Rev 527/260
59
Functional overviewSTM32MP157C/F
3.7 Boot modes
At startup, the boot source used by the internal BootROM is selected by the BOOT pin and
OTP bytes.
BOOT2 BOOT1 BOOT0Initial boot modeComments
Table 2. Boot modes
Wait incoming connection on:
(3)
(1)
– USART2/3/6 and UART4/5/7/8 on default pins
– USB high-speed device
(3)
Serial NOR Flash on QUADSPI
e•MMC on SDMMC2 (default)
(2)
(4)
(4)(5)
SLC NAND Flash on FMC
000UART and USB
001Serial NOR Flash
010e•MMC
(3)
011NAND Flash
100Reserved (NoBoot)Used to get debug access without boot from Flash memory
101SD card
(3)
SD card on SDMMC1 (default)
(4)(5)
Wait incoming connection on:
110UART and USB
(1)(3)
– USART2/3/6 and UART4/5/7/8 on default pins
– USB high-speed device on OTG_HS_DP/DM pins
111Serial NAND Flash
1. can be disabled by OTP settings.
2. USB requires 24 MHz HSE clock/crystal if OTP is not programmed for different frequency.
3. Boot source can be changed by OTP settings (e.g. initial boot on SD card, then e•MMC with OTP settings).
4. Default pins can be altered by OTP.
5. Alternatively, another SDMMC1 or SDMMC2 interface than this default can be selected by OTP.
(3)
Serial NAND Flash on QUADSPI
(4)
(2)
28/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.8 Power supply management
3.8.1 Power supply scheme
Caution:V
•The V
is the main supply for I/Os and internal part kept powered during Standby
DD
mode. Useful voltage range is 1.71 V to 3.6 V (e.g. 1.8 V, 2.5 V, 3.0 V or 3.3 V typ.)
–V
•The V
DDCORE
DD_DSI
, V
DD_PLL
and V
DD_ANA
must be star-connected to VDD.
is the main digital voltage and is usually shutdown during Standby mode.
Voltage range during Run mode is 1.18 V to 1.25/1.38 V (1.2/1.34 V typ.), see
Table 13: General operating conditions.
•The VBAT pin can be connected to the external battery (1.2 V < V
external battery is used, it is mandatory to connect this pin to V
DD
BAT
.
< 3.6 V). If no
•The VDDA pin is the analog (ADC/DAC/VREF), supply voltage range is 1.71 V to 3.6 V.
DAC can only be used when V
requires V
equal to or higher than V
DDA
is above or equal 1.8 V. Using Internal V
DDA
REF+
+ 0.3 V.
REF+
•The VDDA1V8_REG pin is the output of internal regulator and connected internally to
USB PHY and USB PLL. Internal V
DDA1V8_REG
regulator is enabled by default and can
be controlled by software. It is always shut down during Standby mode.
There is specific BYPASS_REG1V8 pin that must be connected either to V
or VDD to
SS
activate or deactivate the voltage regulator. It is mandatory to bypass the 1.8 V
regulator when V
VDDA1V8_REG pin must be connected to V
is below 2.25 V (BYPASS_REG1V8 = V
DD
(if below 1.98 V) or to a dedicated
DD
. In that case,
DD)
1.65 V - 1.98 V supply (1.8 V typ.).
•V
DDA1V8_DSI
Should be connected to V
is the analog DSI supply. Voltage range is 1.65 V to 1.98 V. (1.8 V typ.)
DDA1V8_REG
.
•VDDA1V1_REG pin is the output of internal regulator connected internally to USB PHY.
Internal V
DDA1V1_REG
regulator is enabled by default and can be controlled by
software. It is always shut down during Standby mode.
•VDDA1V2_DSI_REG pin is the output of internal regulator and connected internally to
DSI PLL.
•V
DDA1V2_DSI_PHY
V
DDA1V2_DSI_REG
•V
DD3V3_USBHS
PHY supply. Voltage range is 3.07 V to 3.6 V. V
OTG_VBUS and ID pins. So, V
speed OTG device is used. If not used, must be connected to V
DD3V3_USBHS
must not be present unless V
is the analog DSI PHY supply and should be connected to
.
and V
DD3V3_USBFS
are respectively the USB high-speed and full-speed
is used to supply
DD.
DD3V3_USBFS
DDA1V8_REG
DD3V3_USBFS
must be supplied as well when USB high-
is present, otherwise permanent
STM32MP157C/F damage could occur. Must be ensured by PMIC ranking order or with
external component in case of discrete component power supply implementation.
•V
DDQ_DDR
is the DDR IO supply.
–Voltage range is 1.425 V to 1.575 V for interfacing DDR3 memories (1.5 V typ.).
–Voltage range is 1.283 V to 1.45 V for interfacing DDR3L memories (1.35 V typ.).
–Voltage range is 1.14 V to 1.3 V for interfacing LPDDR2 or LPDDR3 memories
(1.2 V typ.).
DS12505 Rev 529/260
59
Functional overviewSTM32MP157C/F
MSv47490V1
0.3
1
V
BOR0
3.6
Operating modePower-onPower-downtime
V
V
DDX
(1)
V
DD
Invalid supply areaV
DDX
< V
DD
+ 300 mV
V
DDX
independent from V
DD
During power-up and power-down phases, the following power sequence requirements
must be respected:
• When VDD is below 1 V, other power supplies (V
V
DDA1V8_DSI
V
+ 300 mV.
DD
• When V
During the power-down phase, V
, V
DDA1V1_REG
is above 1 V, all power supplies are independent.
DD
, V
DD3V3_USBHS/FS
can temporarily become lower than other supplies only
DD
, V
DDCORE
DDQ_DDR
, V
, V
DDA
DDA1V8_REG
) must remain below
,
if the energy provided to the STM32MP157C/F device remains below 1 mJ; this allows
external decoupling capacitors to be discharged with different time constants during the
power- down transient phase.
Figure 2. Power-up/down sequence
1. V
refers to any power supply among V
DDX
V
DD3V3_USBHS/FS
, V
DDQ_DDR
, V
.
DDCORE
DDA
, V
DDA1V8_REG
, V
DDA1V8_DSI
, V
DDA1V1_REG
,
30/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.8.2 Power supply supervisor
The devices have an integrated power-on reset (POR)/ power-down reset (PDR) circuitry
coupled with a Brownout reset (BOR) circuitry:
•Power-on reset (POR)
The POR supervisor monitors V
The devices remain in reset mode when V
•Power-down reset (PDR)
The PDR supervisor monitors V
below a fixed threshold.
The PDR supervisor can be enabled/disabled through PDR_ON pin.
•Brownout reset (BOR)
The BOR supervisor monitors V
2.7 V) can be configured through option bytes. A reset is generated when V
below this threshold.
•Power-on reset V
DDCORE
(POR_VDDCORE)
The POR_VDDCORE supervisor monitors V
a fixed threshold. The V
DDCORE
this threshold,
•Power-down reset V
DDCORE
The PDR_VDDCORE supervisor monitors V
reset is generated when V
DDCORE
The PDR_VDDCORE supervisor can be enabled/disabled through PDR_ON_CORE
pin.
power supply and compares it to a fixed threshold.
DD
power supply. A reset is generated when V
DD
power supply. Three BOR thresholds (from 2.1 to
DD
domain remain in reset mode when V
is below this threshold,
DD
DDCORE
power supply and compares it to
DDCORE
(PDR_VDDCORE)
DDCORE
power supply. A V
DDCORE
drops below a fixed threshold.
drops
DD
drops
DD
is below
domain
DS12505 Rev 531/260
59
Functional overviewSTM32MP157C/F
3.9 Low-power strategy
There are several ways to reduce power consumption on STM32MP157C/F:
•Decrease dynamic power consumption by slowing down the CPU clocks and/or the
bus matrix clocks and/or controlling individual peripheral clocks.
•Save power consumption when the CPU is IDLE, by selecting among the available lowpower mode according to the user application needs. This allows the best compromise
between short startup time, low-power consumption, as well as available wakeup
sources, to be achieved.
The CPUs feature several low-power modes:
•CSleep (CPU clock stopped)
•CStop (CPU sub-system clock stopped)
•Stop (bus matrix clocks stalled, the oscillators can be stopped)
•CStandby (MPU sub-system clock stopped and wakeup via reset)
•Standby (system powered down)
•LP-Stop and LPLV-Stop (bus matrix clocks stalled, the oscillators can be stopped, low-
power mode signaled to external regulator)
CSleep and CStop low-power modes are entered by the CPU when executing the WFI (wait
for interrupt) or WFE (Wait for Event) instructions, or when the SLEEPONEXIT bit of the
Cortex-M4 core is set after returning from an interrupt service routine.
If part of the domain is not in low-power mode, the domain remains in the current mode.
Finally the system can enter Stop or Standby when all EXTI wakeup sources are cleared
and the CPUs are in CStop or CStandby mode.
System power modeMPUMCU
Run mode
Stop mode
LP-Stop mode
LPLV-Stop mode
Standby mode
Table 3. System versus domain power mode
CRun or CSleep
CStop or CStandby
CRun or CSleepCStop
CStop or CStandbyCStop
CStandby or (CStop and
MPU PDDS = 1 and MPU CSTBYDIS = 1)
CRun or CSleep
CStop and
MCU PDDS = 1
32/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.10 Reset and clock controller (RCC)
The clock and reset controller manages the generation of all the clocks, as well as the clock
gating and the control of the system and peripheral resets. It provides a high flexibility in the
choice of clock sources and allows application of clock ratios to improve the power
consumption. In addition, on some communication peripherals that are capable to work with
two different clock domains (either a bus interface clock or a kernel peripheral clock), the
system frequency can be changed without modifying the baudrate.
3.10.1 Clock management
The devices embed four internal oscillators, two oscillators with external crystal or
resonator, three internal oscillators with fast startup time and four PLLs.
The RCC receives the following clock source inputs:
–The clocks for the AXI-SS (including APB4, APB5, AHB5 and AHB6 bridges)
–The clocks for the DDR interface
–The clocks for the GPU
•The PLL3 provides:
–The clocks for the MCU, and its bus matrix (including the APB1, APB2, APB3,
AHB1, AHB2, AHB3 and AHB4)
–The kernel clocks for peripherals
•The PLL4 is dedicated to the generation of the kernel clocks for various peripherals
The system starts on the HSI clock. The user application can then select the clock
configuration.
DS12505 Rev 533/260
59
Functional overviewSTM32MP157C/F
3.10.2 System reset sources
The power-on reset initializes all registers while the system reset reinitializes the system
except for the debug, part of the RCC and power controller status registers, as well as the
backup power domain.
An application reset is generated from one of the following sources:
–a reset from NRST pad
–a reset from POR and PDR signal (generally called power-on reset)
–a reset from BOR (generally called brownout)
–a reset from the independent watchdogs 1
–a reset from the independent watchdogs 2
–a software reset from the Cortex-M4 (MCU)
–a software reset from the Cortex-A7 (MPU)
–a failure on HSE, when the clock security system feature is activated
A system reset is generated from one of the following sources:
–An application reset,
–A reset from POR_VDDCORE signal,
–Every time the system exits from Standby.
3.11 Hardware semaphore (HSEM)
The HW semaphore block provides 64 (32-bit) register-based semaphores.
The semaphores can be used to ensure synchronization between different processes
running on a core and between different cores. The HSEM provides a non blocking
mechanism to lock semaphores in an atomic way. The following functions are provided:
•Locking a semaphore can be done in 2 ways:
–2-step lock: by writing CoreID and ProcessID to the semaphore, followed by a
read check.
–1-step lock: by reading the CoreID from the semaphore.
•Interrupt generation when a semaphore is freed.
–Each semaphore may generated an interrupt on one of the interrupt lines.
•Semaphore clear protection.
–A semaphore is only cleared when CoreID and ProcessID matches.
•Global semaphore clear per CoreID.
3.12 Inter-processor communication controller (IPCC)
The inter-processor communication controller (IPCC) is used for communicating data
between two processors.
The IPCC block provides a non blocking signaling mechanism to post and retrieve
communication data in an atomic way. It provides the signaling for four channels:
•two channels in the direction from processor 1 to processor 2
•two channels in the opposite direction.
34/260DS12505 Rev 5
STM32MP157C/FFunctional overview
It is then possible to have two different communication types in each direction.
The IPCC communication data must be located in a common memory, which is not part of
the IPCC block.
3.12.1 IPCC main features
•Status signaling for the four channels
–Channel occupied/free flag, also used as lock
•Two interrupt lines per processor
–One for RX channel occupied (communication data posted by sending processor)
–One for TX channel free (communication data retrieved by receiving processor)
•Interrupt masking per channel
–Channel occupied mask
–Channel free mask
•Two channel operation modes
–Simplex (each channel has its own communication data memory location)
–Half duplex (a single channel in associated to a bidirectional communication data
information memory location)
3.13 General-purpose input/outputs (GPIOs)
Each of the GPIO pins can be configured by software as output (push-pull or open-drain,
with or without pull-up or pull-down), as input (with or without pull-up or pull-down) or as
peripheral alternate function. Most of the GPIO pins are shared with digital or analog
alternate functions. All GPIOs are high-current-capable and have speed selection to better
manage internal noise, power consumption and electromagnetic emission.
After reset, all GPIOs are in analog mode to reduce power consumption.
The I/O configuration can be locked if needed by following a specific sequence in order to
avoid spurious writing to the I/Os registers.
Additionally, GPIO pins on port Z can be individually set as secure, which would mean that
software accesses to these GPIOs and associated peripherals defined as secure are
restricted to secure software running on Cortex-A7.
3.14 TrustZone protection controller (ETZPC)
ETZPC is used to configure TrustZone security of bus masters and slaves with
programmable-security attributes (securable resources) such as:
•On-chip SYSRAM with programmable secure region size
•AHB and APB peripherals to be made secure
Notice that by default, SYSRAM and peripheral are set to secure access only, so, not
accessible by non-secure masters such as Cortex-M4 or DMA1/DMA2.
ETZPC can also allocate peripherals and SRAM to be accessible only by the Cortex-M4
and/or DMA1/DMA2. This ensures the safe execution of the Cortex-M4 firmware, protected
from other masters (e.g. Cortex-A7) unwanted accesses.
DS12505 Rev 535/260
59
Functional overviewSTM32MP157C/F
3.15 Bus-interconnect matrix
The devices feature an AXI bus matrix, one main AHB bus matrix and bus bridges that allow
bus masters to be interconnected with bus slaves (see Figure 3, the dots represent the
enabled master/slave connections).
The devices features three DMA modules to unload CPU activity:
•A master direct memory access (MDMA)
The MDMA is a high-speed DMA controller, which is in charge of all types of memory
transfers (peripheral to memory, memory to memory, memory to peripheral), without
any CPU action. It features a master AXI interface.
The MDMA is located in MPU domain. It is able to interface with the other DMA
controllers located in MCU domain to extend the standard DMA capabilities, or can
manage peripheral DMA requests directly.
Each of the 32 channels can perform block transfers, repeated block transfers and
linked list transfers.
The MDMA can be set to make secure transfers to secured memories.
•Two DMA controllers (DMA1, DMA2), located in MCU domain. Each controller is a
dual-port AHB, for a total of 16 DMA channels to perform FIFO-based block transfers.
The DMAMUX is an extension of the DMA1 and DMA2 controllers. It multiplexes and routes
the DMA peripheral requests to the DMA1 or DMA2 controllers, with a high flexibility,
maximizing the number of DMA requests that run concurrently, as well as generating DMA
requests from peripheral output trigger or DMA event.
3.17 Nested vectored interrupt controller (NVIC)
The devices embed a nested vectored interrupt controller able to manage 16 priority levels,
and handle up to 150 maskable interrupt channels plus the 16 interrupt lines of the Cortex
M4 with FPU core.
•Interrupt entry vector table address passed directly to the core
•Allows early processing of interrupts
•Processing of late arriving, higher-priority interrupts
•Support tail chaining
•Processor context automatically saved
•Interrupt entry restored on interrupt exit with no instruction overhead
This hardware block provides flexible interrupt management features with minimum interrupt
latency.
3.18 Extended interrupt and event controller (EXTI)
The extended interrupt and event controller (EXTI) manages individual CPU and system
wakeup through configurable and direct event inputs. It provides wake-up requests to the
power control, and generates an interrupt request to the CPUs NVIC or GIC and events to
the CPUs event inputs. For each CPU an additional event generation block (EVG) is needed
to generate the CPU event signal.
®
-
The EXTI wake-up requests allow the system to be woken up from Stop mode, and the
CPUs to be woken up from CStop and CStandby modes.
The interrupt request and event request generation can also be used in Run mode.
38/260DS12505 Rev 5
STM32MP157C/FFunctional overview
The block also includes the EXTI IOport selection.
Each interrupt or event can be set as secure in order to restrict access to secure software
only.
3.19 Cyclic redundancy check calculation unit (CRC1, CRC2)
The CRC (cyclic redundancy check) calculation unit is used to get a CRC code using a
programmable polynomial.
Among other applications, CRC-based techniques are used to verify data transmission or
storage integrity. In the scope of the EN/IEC 60335-1 standard, they offer a means of
verifying the Flash memory integrity. The CRC calculation unit helps computing a signature
of the software during runtime, to be compared with a reference signature generated at linktime and stored at a given memory location.
3.20 Flexible memory controller (FMC)
The FMC controller main features are the following:
•Interface with static-memory mapped devices including:
–NOR Flash memory
–Static or pseudo-static random access memory (SRAM, PSRAM)
–NAND Flash memory with 4-bit/8-bit BCH hardware ECC
•8-,16-bit data bus width
•Independent chip select control for each memory bank
•Independent configuration for each memory bank
•Write FIFO
3.21 Dual Quad-SPI memory interface (QUADSPI)
The QUADSPI is a specialized communication interface targeting single, dual or quad SPI
Flash memories. It can operate in any of the three following modes:
•indirect mode: all the operations are performed using the QUADSPI registers
•status polling mode: the external Flash memory status register is periodically read and
an interrupt can be generated in case of flag setting
•memory-mapped mode: the external Flash memory is mapped to the address space
and is seen by the system as if it was an internal memory
Both throughput and capacity can be increased two-fold using dual-flash mode, where two
Quad-SPI Flash memories are accessed simultaneously.
QUADSPI is coupled with a delay block (DLYBQS) allowing the support of external data
frequency above 100 MHz.
DS12505 Rev 539/260
59
Functional overviewSTM32MP157C/F
3.22 Analog-to-digital converters (ADCs)
The STM32MP157C/F devices embed two analog-to-digital converters, which resolution
can be configured to 16, 14, 12, 10 or 8 bits. Each ADC shares up to 20 external channels,
performing conversions in the single-shot or scan mode. In scan mode, automatic
conversion is performed on a selected group of analog inputs.
Additional logic functions embedded in the ADC interface allow:
•simultaneous ADC1/ADC2 conversion
•interleaved ADC1/ADC2 conversion.
The ADC can be served by the DMA controller, thus allowing the automatic transfer of ADC
converted values to a destination location without any software action.
In addition, an analog watchdog feature can accurately monitor the converted voltage of
one, some or all selected channels. An interrupt is generated when the converted voltage is
outside the programmed thresholds.
In order to synchronize A/D conversion and timers, the ADCs can be triggered by any of
TIM1, TIM2, TIM3, TIM4, TIM6, TIM8, TIM15, LPTIM1, LPTIM2 and LPTIM3 timers.
3.23 Temperature sensor
The STM32MP157C/F devices embed a temperature sensor that generates a voltage (VTS)
that varies linearly with the temperature. This temperature sensor is internally connected to
ADC2_INP12. It can measure the device ambient temperature ranging from –40 to +125 °C
with a precision of ±2%.
The temperature sensor has a good linearity, but it has to be calibrated to obtain a good
overall accuracy of the temperature measurement. As the temperature sensor offset varies
from chip to chip due to process variation, the uncalibrated internal temperature sensor is
suitable for applications that detect temperature changes only. To improve the accuracy of
the temperature sensor measurement, each device is individually factory-calibrated by ST.
The temperature sensor factory calibration data are stored by ST in the OTP area, which is
accessible in read-only mode.
3.24 Digital temperature sensor (DTS)
The device embeds a frequency output temperature sensor. This block counts the
frequency based on the LSE or PCLK to provide the temperature information.
Following functions can be supported:
•Interrupt generation by temperature threshold.
•Wakeup signal generation by temperature threshold.
3.25 V
The V
backup SRAM.
operation
BAT
power domain contains the RTC, the backup registers, the retention RAM and the
BAT
40/260DS12505 Rev 5
STM32MP157C/FFunctional overview
In order to optimize battery duration, this power domain is supplied by VDD when available
or by the voltage applied on VBAT pin (when V
switched when the PDR detects that V
has dropped below the PDR level.
DD
supply is not present). V
DD
power is
BAT
The voltage on the VBAT pin could be provided by an external battery, a supercapacitor or
directly by V
V
operation is activated when VDD is not present.
BAT
The V
BAT
. In the later case, VBAT mode is not functional.
DD
pin supplies the RTC, the backup registers, the retention RAM and the backup
SRAM.
Note:None of these events: external interrupts, TAMP event, or RTC alarm/events are able to
directly restore the V
supply and force the STM32MP157C/F device out of the V
DD
BAT
operation. Nevertheless, TAMP events and RTC alarm/events can be used to generate a
signal to an external circuitry (typically a PMIC) that can restore the STM32MP157C/F V
DD
supply.
When PDR_ON pin is connected to VSS (internal reset OFF), the V
more available and VBAT
pin must be connected to V
DD
.
functionality is no
BAT
3.26 Digital-to-analog converters (DAC1, DAC2)
The two 12-bit buffered DAC channels can be used to convert two digital signals into two
analog voltage signal outputs.
This dual digital interface supports the following features:
•Two DAC converters: one for each output channel
•8-bit or 12-bit monotonic output
•Left or right data alignment in 12-bit mode
•Synchronized update capability
•Noise-wave generation
•Triangular-wave generation
•Sample and hold mode to reduce the power consumption
•Dual DAC channel independent or simultaneous conversions
•DMA capability for each channel including DMA underrun error detection
•External triggers for conversion
•input voltage reference V
or internal VREFBUF reference.
REF+
The DAC channels are triggered through the timer update outputs that are also connected
to different DMA streams.
DS12505 Rev 541/260
59
Functional overviewSTM32MP157C/F
MSv40197V1
VREFBUF
Low frequency
cut-off capacitor
DAC, ADC
Bandgap+
V
DDA
-
100 nF
VREF+
3.27 Voltage reference buffer (VREFBUF)
The STM32MP157C/F devices embed a voltage reference buffer which can be used as
voltage reference for ADC, DACs and also as voltage reference for external components
through the VREF+ pin.
The internal voltage reference buffer supports four voltages:
•1.5 V
•1.8 V
•2.048 V
•2.5 V
An external voltage reference can be provided through the VREF+ pin when the internal
voltage reference buffer is off.
Figure 4. Voltage reference buffer
3.28 Digital filter for sigma delta modulators (DFSDM1)
The device embeds one DFSDM with support for 6 digital filters modules and 8 external
input serial channels (transceivers) or alternately 8 internal parallel inputs.
The DFSDM peripheral is dedicated to interface external Σ∆ modulators to
STM32MP157C/F and perform digital filtering of the received data streams. Σ∆ modulators
are used to convert analog signals into digital serial streams that constitute the inputs of the
DFSDM. The DFSDM can also interface PDM (pulse density modulation) microphones and
perform the PDM to PCM conversion and filtering (hardware accelerated). The DFSDM
features optional parallel data stream inputs from internal ADC peripherals or
STM32MP157C/F memory (through DMA/CPU transfers into DFSDM).
The DFSDM transceivers support several serial interface formats (to support various Σ∆
modulators). DFSDM digital filter modules perform digital processing according user-defined
filter parameters with up to 24-bit final ADC resolution.
42/260DS12505 Rev 5
STM32MP157C/FFunctional overview
The DFSDM peripheral supports:
•8 multiplexed input digital serial channels:
–configurable SPI interface to connect various SD modulator(s)
–configurable Manchester coded 1-wire interface support
–PDM (pulse density modulation) microphone input support
–maximum input clock frequency up to 20 MHz (10 MHz for Manchester coding)
–clock output for SD modulator(s): 0…20 MHz
•Alternative inputs from 8 internal digital parallel channels (up to 16-bit input resolution):
–internal sources: ADC data or memory data streams (DMA)
•6 digital filter modules with adjustable digital signal processing:
–Sinc
x
filter: filter order/type (1…5), oversampling ratio (1…1024)
–integrator: oversampling ratio (1…256)
•Up to 24-bit output data resolution, signed output data format
•Automatic data offset correction (offset stored in register by user)
•Continuous or single conversion
•Start-of-conversion triggered by:
–software trigger
–internal timers
–external events
–start-of-conversion synchronously with first digital filter module (DFSDM0)
•Analog watchdog feature:
–low value and high value data threshold registers
–dedicated configurable Sinc
x
digital filter (order = 1…3, oversampling ratio =
1…32)
–input from final output data or from selected input digital serial channels
–continuous monitoring independently from standard conversion
•Short circuit detector to detect saturated analog input values (bottom and top range):
–up to 8-bit counter to detect 1…256 consecutive 0’s or 1’s on serial data stream
–monitoring continuously each input serial channel
•Break signal generation on analog watchdog event or on short circuit detector event
•Extremes detector:
–storage of minimum and maximum values of final conversion data
–refreshed by software
•DMA capability to read the final conversion data
•Interrupts: end of conversion, overrun, analog watchdog, short circuit, input serial
channel clock absence
•“Regular” or “injected” conversions:
–“regular” conversions can be requested at any time or even in continuous mode
without having any impact on the timing of “injected” conversions
–“injected” conversions for precise timing and with high conversion priority
DS12505 Rev 543/260
59
Functional overviewSTM32MP157C/F
3.29 Digital camera interface (DCMI)
The devices embed a camera interface that can connect with camera modules and CMOS
sensors through an 8-bit to 14-bit parallel interface, to receive video data. The camera
interface can achieve a data transfer rate up to 140 Mbyte/s using a 80 MHz pixel clock and
14-bit of data. It features:
•Programmable polarity for the input pixel clock and synchronization signals
•Parallel data communication can be 8-, 10-, 12- or 14-bit
•Supports 8-bit progressive video monochrome or raw Bayer format, YC
progressive video, RGB 565 progressive video or compressed data (like JPEG)
•Supports continuous mode or snapshot (a single frame) mode
•Capability to automatically crop the image
bCr
4:2:2
3.30 LCD-TFT display controller (LTDC)
The LCD-TFT display controller provides a 24-bit parallel digital RGB (Red, Green, Blue)
and delivers all signals to interface directly to a broad range of LCD and TFT panels up to
WXGA (1366 × 768) @60 fps or up to Full HD (1920 × 1080) @30 fps resolution with the
following features:
•Up to 90 MHz pixel clock
•2 display layers with dedicated FIFO
•Color look-up table (CLUT) up to 256 colors (256×24-bit) per layer
•Up to 8 input color formats selectable per layer
•Flexible blending between two layers using alpha value (per pixel or constant)
•Flexible programmable parameters for each layer
•Color keying (transparency color)
•Up to 4 programmable interrupt events
•AXI master interface
44/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.31 Display serial interface (DSI)
The display serial interface (DSI) is part of a group of communication protocols defined by
the MIPI
protocol functions defined in the MIPI
It provides an interface between the system and the MIPI® D-PHY, allowing the
communication with a DSI-compliant display.
•Compliant with MIPI
•Interface with MIPI
•Supports all commands defined in the MIPI
•Supports up to two D-PHY data lanes at 1 Gbps
•Bidirectional communication and escape mode support through data lane 0
•Supports non-continuous clock in D-PHY clock lane for additional power saving
•Supports ultra-low-power mode with PLL disabled
•ECC and checksum capabilities
•Support for end of transmission packet (EoTp)
•Fault recovery schemes
•Configurable selection of system interfaces:
•Video mode interfaces features:
•Adapted interface features:
•Video mode pattern generator
®
Alliance. The MIPI® DSI host controller is a digital core that implements all
®
Alliance standards
®
D-PHY
–AMBA APB for control and optional support for generic and DCS commands
–Video mode interface through LTDC
–Adapted command mode interface through LTDC
–Independently programmable virtual channel ID in video mode, adapted command
mode and APB slave
–LTDC interface color coding mappings into 16, 18 and 24-bit interface
–Programmable polarity of all LTDC interface signals
–Maximum resolution is limited by available DSI physical link bandwidth
–Support for sending large amounts of data through the memory_write_start (WMS)
and memory_write_continue (WMC) DCS commands
–LTDC interface color coding mappings into 16, 18 and 24-bit interface
®
DSI specification.
®
Alliance specification for DCS
3.32 True random number generator (RNG1, RNG2)
All the devices embed two RNG that deliver 32-bit random numbers generated by an
integrated analog circuit.
RNG1 can be defined (in ETZPC) as accessible by secure software only.
DS12505 Rev 545/260
59
Functional overviewSTM32MP157C/F
3.33 Cryptographic and hash processors (CRYP1, CRYP2 and
HASH1, HASH2)
The devices embed two cryptographic processors that support the advanced cryptographic
algorithms usually required to ensure confidentiality, authentication, data integrity and nonrepudiation when exchanging messages with a peer:
•Encryption/decryption
–DES/TDES (data encryption standard/triple data encryption standard): ECB
(electronic codebook) and CBC (cipher block chaining) chaining algorithms, 64-,
128- or 192-bit key
mode) chaining algorithms, 128, 192 or 256-bit key
•Universal HASH
–SHA-1, SHA224 and SHA256 (secure HASH algorithms)
–MD5
–HMAC
The cryptographic accelerator supports DMA request generation.
CRYP1 and HASH1 can be defined (in ETZPC) as accessible by secure software only.
3.34 Boot and security and OTP control (BSEC)
The BSEC (boot and security and OTP control) is intended to control an OTP (one time
programmable) fuse box, used for embedded non-volatile storage for device configuration
and security parameters. Some part of BSEC should be configured as accessible by secure
software only.
3.35 Timers and watchdogs
The devices include two advanced-control timers, ten general-purpose timers, two basic
timers, five low-power timers, three watchdogs, a SysTick timer in Cortex-M4 and 4 system
timers in each Cortex-A7.
All timer counters can be frozen in debug mode.
Tabl e 4 compares the features of the advanced-control, general-purpose, basic and low-
power timers.
46/260DS12505 Rev 5
STM32MP157C/FFunctional overview
Table 4. Timer feature comparison
Timer
type
Advanced
-control
General
purpose
Timer
TIM1,
TIM8
TIM2,
TIM5
TIM3,
TIM4
Counter
resolution
16-bit
32-bit
16-bit
Counter
type
Up,
down,
up/down
Up,
down,
up/down
Up,
down,
up/down
TIM1216-bitUp
TIM13,
TIM14
16-bitUp
TIM1516-bitUp
TIM16,
TIM17
16-bitUp
Prescaler
factor
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
Any integer
between 1
and 65536
DMA
request
generation
Capture/
compare
channels
Complementary
output
Max
interface
clock
(MHz)
Yes64104.5209
Yes4No104.5209
Yes4No104.5209
No2No104.5209
No1No104.5209
Yes21104.5209
Yes11104.5209
Max
timer
clock
(MHz)
(1)
Any integer
between 1
and 65536
Yes0No104.5209
Basic
TIM6,
TIM7
16-bitUp
LPTIM1,
Low-
power
LPTIM2,
LPTIM3,
LPTIM4,
16-bitUp
1, 2, 4, 8,
16, 32, 64,
128
No1
LPTIM5
1. The maximum timer clock is up to 209 MHz depending on TIMGxPRE bit in the RCC.
2. No capture channel on LPTIM.
(2)
No104.5209
DS12505 Rev 547/260
59
Functional overviewSTM32MP157C/F
3.35.1 Advanced-control timers (TIM1, TIM8)
The advanced-control timers (TIM1, TIM8) can be seen as three-phase PWM generators
multiplexed on 6 channels. They have complementary PWM outputs with programmable
inserted dead times. They can also be considered as complete general-purpose timers.
Their 4 independent channels can be used for:
•Input capture
•Output compare
•PWM generation (edge- or center-aligned modes)
•One-pulse mode output
If configured as standard 16-bit timers, they have the same features as the general-purpose
timers. If configured as 16-bit PWM generators, they have full modulation capability (0100%).
The advanced-control timer can work together with the general-purpose timers via the timer
link feature for synchronization or event chaining.
TIM1 and TIM8 support independent DMA request generation.
There are ten synchronizable general-purpose timers embedded in the STM32MP157C/F
devices (see Tab l e 4 for differences).
•TIM2, TIM3, TIM4, TIM5
The devices include 4 full-featured general-purpose timers: TIM2, TIM3, TIM4 and
TIM5. TIM2 and TIM5 are based on a 32-bit auto-reload up/downcounter and a 16-bit
prescaler while TIM3 and TIM4 are based on a 16-bit auto-reload up/downcounter and
a 16-bit prescaler. All timers feature 4 independent channels for input capture/output
compare, PWM or one-pulse mode output. This gives up to 16 input capture/output
compare/PWMs on the largest packages.
TIM2, TIM3, TIM4 and TIM5 general-purpose timers can work together, or with the
other general-purpose timers and the advanced-control timers TIM1 and TIM8 via the
timer link feature for synchronization or event chaining.
Any of these general-purpose timers can be used to generate PWM outputs.
TIM2, TIM3, TIM4, TIM5 all have independent DMA request generation. They are
capable of handling quadrature (incremental) encoder signals and the digital outputs
from 1 to 4 hall-effect sensors.
•TIM12, TIM13, TIM14, TIM15, TIM16, TIM17
These timers are based on a 16-bit auto-reload upcounter and a 16-bit prescaler.
TIM13, TIM14, TIM16 and TIM17 feature one independent channel, whereas TIM12
and TIM15 have two independent channels for input capture/output compare, PWM or
one-pulse mode output. They can be synchronized with the TIM2, TIM3, TIM4, TIM5
full-featured general-purpose timers or used as simple timebases.
48/260DS12505 Rev 5
STM32MP157C/FFunctional overview
3.35.3 Basic timers TIM6 and TIM7
These timers are mainly used for DAC trigger and waveform generation. They can also be
used as a generic 16-bit time base.
TIM6 and TIM7 support independent DMA request generation.
The low-power timer has an independent clock and is running also in Stop mode if it is
clocked by LSE, LSI or an external clock. It is able to wakeup the device from Stop mode.
These low-power timer supports the following features:
•16-bit up counter with 16-bit autoreload register
•16-bit compare register
•Configurable output: pulse, PWM
•Continuous / one-shot mode
•Selectable software / hardware input trigger
•Selectable clock source:
•Internal clock source: LSE, LSI, HSI or APB clock
•External clock source over LPTIM input (working even with no internal clock source
running, used by the pulse counter application)
•Programmable digital glitch filter
•Encoder mode
3.35.5 Independent watchdog (IWDG1, IWDG2)
The independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. It is
clocked from an independent 32 kHz internal RC(LSI) and as it operates independently from
the main clock, it can operate in Stop and Standby modes. It can be used either as a
watchdog to reset the device when a problem occurs, or as a free-running timer for
application timeout management. It is hardware- or software-configurable through the option
bytes.
IWDG1 can be defined (in ETZPC) as accessible by secure software only.
3.35.6 System window watchdog (WWDG1)
The window watchdog is based on a 7-bit downcounter that can be set as free-running. It
can be used as a watchdog to reset the device when a problem occurs. It is clocked from
the APB clock. It has an early warning interrupt capability and the counter can be frozen in
debug mode.
3.35.7 SysTick timer (Cortex-M4)
This timer is embedded inside Cortex-M4 core and dedicated to real-time operating
systems, but can also be used as a standard downcounter. It features:
•A 24-bit downcounter
•Autoreload capability
•Maskable system interrupt generation when the counter reaches 0
•Programmable clock source.
DS12505 Rev 549/260
59
Functional overviewSTM32MP157C/F
3.35.8 Generic timers (Cortex-A7 CNT)
Cortex-A7 generic timers embedded inside Cortex-A7 are fed by value from system timing
generation (STGEN).
The Cortex-A7 processor provides a set of four timers for each processor:
•Physical timer for use in secure and non-secure modes. The registers for the physical
timer are banked to provide secure and non-secure copies.
•Virtual timer for use in non-secure modes.
•Physical timer for use in hypervisor mode.
Generic timers are not memory mapped peripherals, they are accessible only by specific
Cortex-A7 coprocessor instructions (cp15).
3.36 System timer generation (STGEN)
The system timing generation (STGEN) generates a time count value that provides a
consistent view of time for all Cortex-A7 generic timers.
The system timing generation has the following key features:
•64-bit wide to avoid roll-over issues.
•Starts from zero or a programmable value.
•A control APB interface (STGENC) enables the timer to be saved and restored across
powerdown events.
•Read-only APB interface (STGENR) enables the timer value to be read by non-secure
software and debug tools.
•The timer value incrementing can be stopped during system debug.
STGENC can be defined (in ETZPC) as accessible by secure software only.
3.37 Real-time clock (RTC)
The RTC provides an automatic wakeup to manage all low-power modes.
The real-time clock (RTC) is an independent BCD timer/counter. The RTC provides a time-
of-day clock/calendar with programmable alarm interrupts.
The RTC includes also a periodic programmable wakeup flag with interrupt capability.
Two 32-bit registers contain the seconds, minutes, hours (12- or 24-hour format), day (day
of week), date (day of month), month, and year, expressed in binary coded decimal format
(BCD). The sub-seconds value is also available in binary format.
Compensations for 28-, 29- (leap year), 30-, and 31-day months are performed
automatically. Daylight saving time compensation can also be performed.
Additional 32-bit registers contain the programmable alarm subseconds, seconds, minutes,
hours, day, and date.
A digital calibration feature is available to compensate for any deviation in crystal oscillator
accuracy.
After backup domain reset, all RTC registers are protected against possible parasitic write
accesses.
50/260DS12505 Rev 5
STM32MP157C/FFunctional overview
As long as the supply voltage remains in the operating range, the RTC never stops,
regardless of the device status (Run mode, Low-power mode or under reset).
The RTC unit main features are the following:
•Calendar with subseconds, seconds, minutes, hours (12 or 24 format), day (day of
week), date (day of month), month, and year.
•Daylight saving compensation programmable by software.
•Programmable alarm with interrupt function. The alarm can be triggered by any
combination of the calendar fields.
•Automatic wakeup unit generating a periodic flag that triggers an automatic wakeup
interrupt.
•Reference clock detection: a more precise second source clock (50 or 60 Hz) can be
used to enhance the calendar precision.
•Accurate synchronization with an external clock using the subsecond shift feature.
•Digital calibration circuit (periodic counter correction): 0.95 ppm accuracy, obtained in a
calibration window of several seconds
•Timestamp function for event saving
•Maskable interrupts/events:
–Alarm A
–Alarm B
–Wakeup interrupt
–Timestamp
•TrustZone support:
–RTC fully securable
–Alarm A, alarm B, wakeup timer and timestamp individual secure or non-secure
configuration
3.38 Tamper and backup registers (TAMP)
32 x 32-bit backup registers are retained in all low-power modes and also in VBAT mode.
They can be used to store sensitive data as their content is protected by an tamper
detection circuit. 3 tamper pins and 5 internal tampers are available for anti-tamper
detection. The external tamper pins can be configured for edge detection, edge and level,
level detection with filtering, or active tamper which increases the security level by auto
checking that the tamper pins are not externally opened or shorted.
DS12505 Rev 551/260
59
Functional overviewSTM32MP157C/F
TAMP main features
•32 backup registers:
–the backup registers (TAMP_BKPxR) are implemented in the RTC domain that
remains powered-on by VBAT when the V
power is switched off.
DD
•3 external tamper detection events.
–Each external event can be configured to be active or passive.
–External passive tampers with configurable filter and internal pull-up.
•5 internal tamper events.
•Any tamper detection can generate a RTC timestamp event.
•Any tamper detection erases the backup registers.
•TrustZone support:
–Tamper secure or non-secure configuration.
–Backup registers configuration in 3 configurable-size areas:
C bus interface handles communications between the STM32MP157C/F and the
2
serial I
The I2C peripheral supports:
•I
•System management bus (SMBus) specification rev 2.0 compatibility:
•Power system management protocol (PMBus™) specification rev 1.1 compatibility
•Independent clock: a choice of independent clock sources allowing the I2C
•Wakeup from Stop mode on address match
•Programmable analog and digital noise filters
•1-byte buffer with DMA capability
C bus. It controls all I2C bus-specific sequencing, protocol, arbitration and timing.
2
C-bus specification and user manual rev. 5 compatibility:
–Slave and master modes, multimaster capability
–Standard-mode (Sm), with a bitrate up to 100 kbit/s
–Fast-mode (Fm), with a bitrate up to 400 kbit/s
–Fast-mode Plus (Fm+), with a bitrate up to 1 Mbit/s and 20 mA output drive I/Os
–7-bit and 10-bit addressing mode, multiple 7-bit slave addresses
–Programmable setup and hold times
–Optional clock stretching
–Hardware PEC (packet error checking) generation and verification with ACK
control
–Address resolution protocol (ARP) support
–SMBus alert
communication speed to be independent from the PCLK reprogramming.
I2C4 and I2C6 can be defined (in ETZPC) as accessible by secure software only.
The STM32MP157C/F devices have four embedded universal synchronous receiver
transmitters (USART1, USART2, USART3 and USART6) and four universal asynchronous
receiver transmitters (UART4, UART5, UART7 and UART8). Refer to Tab l e 5 for a summary
of USARTx and UARTx features.
These interfaces provide asynchronous communication, IrDA SIR ENDEC support,
multiprocessor communication mode, single-wire half-duplex communication mode and
have LIN master/slave capability. They provide hardware management of the CTS and RTS
signals, and RS485 Driver Enable. They are able to communicate at speeds of up to
10 Mbit/s.
USART1, USART2, USART3 and USART6 also provide Smartcard mode (ISO 7816
compliant) and SPI-like communication capability.
DS12505 Rev 553/260
59
Functional overviewSTM32MP157C/F
All USART have a clock domain independent from the CPU clock, allowing the USARTx to
wake up the STM32MP157C/F from Stop mode using baudrates up to 200 Kbaud.The wake
up events from Stop mode are programmable and can be:
•Start bit detection
•Any received data frame
•A specific programmed data frame
All USART interfaces can be served by the DMA controller.
USART modes/features
Hardware flow control for modemXX
Continuous communication using DMAXX
Multiprocessor communicationXX
Synchronous mode (master/slave)X-
Smartcard modeX-
Single-wire half-duplex communicationXX
IrDA SIR ENDEC blockXX
LIN modeXX
Dual clock domain and wakeup from low power modeXX
Table 5. USART features
(1)
USART1/2/3/6UART4/5/7/8
Receiver timeout interruptXX
Modbus communicationXX
Auto baud rate detectionX X
Driver EnableXX
USART data length7, 8 and 9 bits
1. X = supported.
USART1 can be defined (in ETZPC) as accessible by secure software only.
The devices feature up to six SPIs (SPI2S1, SPI2S2, SPI2S3, SPI4, SPI5 and SPI6) that
allow communication at up to 50 Mbit/s in master and slave modes, in half-duplex, fullduplex and simplex modes. The 3-bit prescaler gives 8 master mode frequencies and the
frame is configurable from 4 to 16 bits. All SPI interfaces support NSS pulse mode, TI mode,
hardware CRC calculation and 8x 8-bit embedded Rx and Tx FIFOs with DMA capability.
Three standard I2S interfaces (I2S1, I2S2, I2S3, multiplexed with SPI1, SPI2 and SPI3) are
available. They can be operated in master or slave mode, in full-duplex and half-duplex
communication modes, and can be configured to operate with a 16-/32-bit resolution as an
input or output channel. Audio sampling frequencies from 8
supported. When either or both of the I
2
S interfaces is/are configured in master mode, the
master clock can be output to the external DAC/CODEC at 256 times the sampling
kHz up to 192 kHz are
54/260DS12505 Rev 5
STM32MP157C/FFunctional overview
frequency. All I2S interfaces support 16x 8-bit embedded Rx and Tx FIFOs with DMA
capability.
SPI6 can be defined (in ETZPC) as accessible by secure software only.
3.42 Serial audio interfaces (SAI1, SAI2, SAI3, SAI4)
The devices embed 4 SAIs that allow the design of many stereo or mono audio protocols
such as I2S, LSB or MSB-justified, PCM/DSP, TDM or AC’97. An SPDIF output is available
when the audio block is configured as a transmitter. To bring this level of flexibility and
reconfigurability, the SAI contains two independent audio sub-blocks. Each block has it own
clock generator and I/O line controller.
Audio sampling frequencies up to 192 kHz are supported.
In addition, up to 8 microphones can be supported thanks to an embedded PDM interface.
The SAI can work in master or slave configuration. The audio sub-blocks can be either
receiver or transmitter and can work synchronously or asynchronously (with respect to the
other one). The SAI can be connected with other SAIs to work synchronously.
3.43 SPDIF receiver interface (SPDIFRX)
The SPDIFRX peripheral is designed to receive an S/PDIF flow compliant with IEC-60958
and IEC-61937. These standards support simple stereo streams up to high sample rate,
and compressed multi-channel surround sound, such as those defined by Dolby or DTS (up
to 5.1).
The main SPDIFRX features are the following:
•Up to 4 inputs available
•Automatic symbol rate detection
•Maximum symbol rate: 12.288 MHz
•Stereo stream from 32 to 192 kHz supported
•Supports audio IEC-60958 and IEC-61937, consumer applications
•Parity bit management
•Communication using DMA for audio samples
•Communication using DMA for control and user channel information
•Interrupt capabilities
The SPDIFRX receiver provides all the necessary features to detect the symbol rate, and
decode the incoming data stream. The user can select the wanted SPDIF input, and when a
valid signal is available, the SPDIFRX re-samples the incoming signal, decode the
Manchester stream, recognize frames, sub-frames and blocks elements. It delivers to the
CPU decoded data, and associated status flags.
The SPDIFRX also offers a signal named spdif_frame_sync, which toggles at the S/PDIF
sub-frame rate that is used to compute the exact sample rate for clock drift algorithms.
DS12505 Rev 555/260
59
Functional overviewSTM32MP157C/F
3.44 Management data input/output (MDIOS)
The devices embed a MDIO slave interface. It includes the following features:
•32 MDIO register addresses, each of which is managed using separate input and
output data registers:
–32 x 16-bit firmware read/write, MDIO read-only output data registers
–32 x 16-bit firmware read-only, MDIO write-only input data registers
3.45 Secure digital input/output MultiMediaCard interface
(SDMMC1, SDMMC2, SDMMC3)
Three secure digital input/output MultiMediaCard interfaces (SDMMC) provide an interface
between the AHB bus and SD memory cards, SDIO cards and MMC devices.
The SDMMC features include the following:
•Full compliance with MultiMediaCard System Specification Version 4.51.
Card support for three different databus modes: 1-bit (default), 4-bit and 8-bit.
•Full compatibility with previous versions of MultiMediaCards (backward compatibility).
•Full compliance with SD memory card specifications version 4.1.
(SDR104 SDMMC_CK speed limited to maximum allowed I/O speed, SPI mode and
UHS-II mode not supported).
•Full compliance with SDIO card specification version 4.0.
Card support for two different databus modes: 1-bit (default) and 4-bit.
(SDR104 SDMMC_CK speed limited to maximum allowed I/O speed, SPI mode and
UHS-II mode not supported).
•Data transfer up to 208 Mbyte/s for the 8-bit mode.
(depending maximum allowed I/O speed).
•Data and command output enable signals to control external bidirectional drivers.
•IDMA linked list support
Each SDMMC is coupled with a delay block (DLYBSD) allowing support of an external data
frequency above 100 MHz.
3.46 Controller area network (FDCAN1, FDCAN2)
The controller area network (CAN) subsystem consists of two CAN modules, a shared
message RAM memory and a clock calibration unit.
56/260DS12505 Rev 5
STM32MP157C/FFunctional overview
Both CAN modules (FDCAN1 and FDCAN2) are compliant with ISO 11898-1 (CAN protocol
specification version 2.0 part A, B) and CAN FD protocol specification version 1.0.
FDCAN1 supports time triggered CAN (TTCAN) specified in ISO 11898-4, including event
synchronized time-triggered communication, global system time, and clock drift
compensation. The FDCAN1 contains additional registers, specific to the time triggered
feature. The CAN FD option can be used together with event-triggered and time-triggered
CAN communication.
A 10 Kbyte message RAM memory implements filters, receive FIFOs, receive buffers,
transmit event FIFOs, transmit buffers (and triggers for TTCAN). This message RAM is
shared between the two FDCAN1 and FDCAN2 modules.
The common clock calibration unit is optional. It can be used to generate a calibrated clock
for both FDCAN1 and FDCAN2 from the HSI internal RC oscillator and the PLL, by
evaluating CAN messages received by the FDCAN1.
3.47 Universal serial bus high-speed host (USBH)
The devices embed one USB high-speed host (up to 480 Mbit/s) with two physical ports.
USBH supports both low, full-speed (OHCI) as well as high-speed (EHCI) operations
independently on each port. It integrates two transceivers which can be used for either lowspeed (1.2 Mbit/s), full-speed (12 Mbit/s) or high-speed operation (480 Mbit/s), the second
high-speed transceiver is shared with OTG high-speed.
The USB HS is compliant with the USB 2.0 specification. The USB HS controllers require
dedicated clocks that are generated by a PLL inside the USB high-speed PHY.
3.48 USB on-the-go high-speed (OTG)
The devices embed one USB OTG high-speed (up to 480 Mbit/s) device/host/OTG
peripheral. OTG supports both full-speed and high-speed operations. It integrates the
transceivers for full-speed operation (12 Mbit/s) and high-speed operation (480 Mbit/s)
shared with USB Host second port.
The USB OTG HS is compliant with the USB 2.0 specification and with the OTG 2.0
specification. It has software-configurable endpoint setting and supports suspend/resume.
The USB OTG controllers require a dedicated 48 MHz clock that is generated by a PLL
inside RCC or inside the USB high-speed PHY.
DS12505 Rev 557/260
59
Functional overviewSTM32MP157C/F
The main features are:
•Combined Rx and Tx FIFO size of 4 Kbyte with dynamic FIFO sizing
•Supports the session request protocol (SRP) and host negotiation protocol (HNP)
•8 bidirectional endpoints
•16 host channels with periodic OUT support
•Software configurable to OTG1.3 and OTG2.0 modes of operation
•USB 2.0 LPM (link power management) support
•Battery charging specification revision 1.2 support
•Internal FS or HS OTG PHY support
•Internal USB DMA
•HNP/SNP/IP inside (no need for any external resistor)
•For OTG/Host modes, a power switch is needed in case bus-powered devices are
connected
3.49 Gigabit Ethernet MAC interface (ETH1)
The devices provide an IEEE-802.3-2002-compliant gigabit media access controller
(GMAC) for Ethernet LAN communications through an industry-standard mediumindependent interface (MII), a reduced medium-independent interface (RMII), a gigabit
medium-independent interface (GMII) or a reduced gigabit medium-independent interface
(RGMII).
The STM32MP157C/F requires an external physical interface device (PHY) to connect to
the physical LAN bus (twisted-pair, fiber, etc.). The PHY is connected to the device port
using 17 signals for MII, 7 signals for RMII, 26 signals for GMII or 13 signals for RGMII, and
can be clocked using the 25
the STM32MP157C/F or from the PHY.
The devices include the following features:
•Operation modes and PHY interfaces
–10, 100, and 1000 Mbps data transfer rates
–Support of both full-duplex and half-duplex operations
–MII, RMII, GMII and RGMII PHY interfaces
•Multiple queues support and audio video bridging (AVB) management
–Separate channels or queues for AV data transfer in 100 and 1000 Mbps modes
–Two queues on the Rx paths and two queues on the Tx path for AV traffic
–One DMA for Rx path and two DMA for Tx path (one per transmit channels)
–Several arbitration algorithms between queues: weighted round robin (WRR),
–Multi-layer Packet filtering: MAC filtering on source (SA) and destination (DA)
address with perfect and hash filter, VLAN tag-based filtering with perfect and
MHz (MII, RMII, GMII, RGMII) or 125 MHz (GMII, RGMII) from
58/260DS12505 Rev 5
STM32MP157C/FFunctional overview
hash filter, Layer 3 filtering on IP source (SA) or destination (DA) address, Layer 4
filtering on source (SP) or destination (DP) port
–Double VLAN processing: insertion of up to two VLAN tags in transmit path, tag
filtering in receive path
–IEEE 1588-2008/PTPv2 support
–Supports network statistics with RMON/MIB counters (RFC2819/RFC2665)
•Hardware offload processing
–Preamble and start-of-frame data (SFD) insertion or deletion
–Integrity Checksum offload engine for IP header and TCP/UDP/ICMP payload:
transmit checksum calculation and insertion, receive checksum calculation and
comparison
–Automatic ARP request response with the device's MAC address
–TCP Segmentation: Automatic split of large transmit TCP packet into multiple
3.50 High-definition multimedia interface (HDMI) – Consumer
electronics control (CEC)
The device embeds a HDMI-CEC controller that provides hardware support for the
consumer electronics control (CEC) protocol (supplement 1 to the HDMI standard).
This protocol provides high-level control functions between all audiovisual products in an
environment. It is specified to operate at low speeds with minimum processing and memory
overhead. It has a clock domain independent from the CPU clock, allowing the HDMI-CEC
controller to wake up the STM32MP157C/F from Stop mode on data reception.
3.51 Debug infrastructure
The devices offer a comprehensive set of debug and trace features to support software
development and system integration.
•Breakpoint debugging
•Code execution tracing
•Software instrumentation
•JTAG debug port
•Serial-wire debug port
•Trigger input and output
•Serial-wire trace port
•Trace port
•Arm
®
CoreSight™ debug and trace components
The debug can be controlled via a JTAG/serial-wire debug access port, using industry
standard debugging tools.
A trace port allows data to be captured for logging and analysis.
DS12505 Rev 559/260
59
Pinouts, pin description and alternate functionsSTM32MP157C/F
MSv47440V2
PB7PC6VSSPD3PC8PE4
DSI_
CKP
DSI_
D1P
JTDO-
TRACES
WO
JTCK-
SWCLK
VSS
DDR_
DQ0
DDR_
DQ1
PD7PA15PG6PB4PE5PA8PC9PC10
DSI_
CKN
DSI_
D1N
NJT
RST
DSI_
D0P
JTDI
DDR_
DQ3
DDR_
DQS0P
DDR_
DQ7
DDR_
DQS0N
PD4PD5PD0PA9PB3PB15PB9PC7
DSI_
D0N
VDD_
DSI
VSSPC11
JTMSSWDIO
DDR_
RESETN
DDR_
DQ6
DDR_
DQM0
DDR_
DQ2
DDR_A7
VDDQ_
DDR
DDR_A5
VDDQ_
DDR
DDR_
RASN
VDDQ_
DDR
DDR_A6
VSS
PE15
DDR_
DQ5
DDR_
DQ4
VSS
PE13DDR_A9DDR_A13
VSSDDR_A3VSSDDR_A2
PC13
DDR_
BA0
DDR_A0VSS
BOOT0
DDR_
ODT
DDR_
BA2
NRST_
CORE
DDR_
CASN
DDR_
WEN
DDR_
CSN
BOOT1VSS
DDR_
CLKN
VSS
PDR_ONDDR_A15
DDR_
CLKP
VREF+DDR_A1DDR_A12DDR_A10
PA0DDR_A11DDR_A14VSS
PC3
DDR_
BA1
DDR_
CKE
PG13VSS
DDR_
DQ8
DDR_A4
PA2
DDR_
DQ10
DDR_
DQ13
DDR_A8
PB11PC0PB10PG11PG10PD11VSSPF6PE8PD13PD12
BYPASS
_REG1V8
PA11PA10
DDR_
DQ9
DDR_
DQ14
DDR_
DQS1N
PB12PB8PB5PG8PE7PF8PF9
USB_
DP2
PE10PB2
USB_
DP1
PG7PA12
OTG_
VBUS
DDR_
DQS1P
DDR_
DQ15
DDR_
DQM1
PA6PF11VSSPF7PG9
USB_
DM2
VSS
USB_
DM1
PB6
DDR_
VREF
VSS
DDR_
DQ12
DDR_
DQ11
VSS
PG15
PE12
PG12
PD8
VSS
BOOT2
PWR_LP
PA14
VSS
PE2
PA1
PB1
PC5
VSS
PD1
PE6
PE0
PE11
NRST
PC15-
OSC32_
OUT
PC14-
OSC32_
IN
PH0-
OSC_IN
PH1-
OSC_
OUT
PDR_ON
_CORE
PA13
PWR_ON
PA3
PC2
PG14
PC1
PB0
PC4
PA7
DDR_ZQ
VDD1V2_
DSI_REG
VSSPD2PB14PE3PD10PE1
VSS
VDD1V2_
DSI_PHY
VDDA
1V8_DSI
VDD
CORE
PC12
VDD
CORE
PE14PD6
DDR_
DTO1
VSS
VDD
CORE
VSS
VDD
CORE
VSSPD15PD9
DDR_
DTO0
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSSVBAT
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSSVDDPD14
DDR_
ATO
VDD
CORE
VSS
VDD
CORE
VSSVDDVDDAVDDA
VDD
CORE
VSS
VDD
CORE
VSSVDDVDDVSSVSSA
VSS
VDD3V3_
USB
VSS
VDDA
1V8_REG
VSSVSSVSSPA5
USB_
RREF
PF10
VDDA
1V1_REG
VSSPE9VDDPB13PA4
192345678
VDDQ_
DDR
1A
1B
1C
1D
1E
1F
1G
1H
1J
19131817121110987654161514132
A
B
C
D
E
F
G
H
J
K
L
M
N
P
R
T
U
V
W
4 Pinouts, pin description and alternate functions
Figure 5. STM32MP157C/FADxx TFBGA257 pinout
The above figure shows the package top view.
60/260DS12505 Rev 5
STM32MP157C/FPinouts, pin description and alternate functions
MSv47439V2
VSSPE9PF7PF9PG7
VDDA
1V1_REG
VDD3V3_
USBHS
USB_
DP2
VSSPA2PB0PC4PB10PB8
DDR_
DQ12
DDR_
DQ15
DDR_
VREF
VDD3V3_
USBFS
USB_
DM1
A
B
C
D
E
F
G
H
J
K
L
M
N
P
R
T
U
V
W
VSS
PE1
PE11
VSS
PE15
PG12
PD15
PC14-
OSC32_
IN
NRST
BOOT0
PWR_ON
PH0-
OSC_IN
PDR_ON
_CORE
PWR_LP
PA14
PE2
PG14
PB11
PG15
VSS
PE13
PE12
VSS
PD8
VSS
PC15-
OSC32_
OUT
NRST_
CORE
VSS
BOOT2
PH1-
OSC_
OUT
PDR_ON
PA13
VSS
PC2
PG13
PC1
PD0
PE6
VSS
PE14
PD6
PD14
PD9
VBAT
VSS
PC13
VDD_
ANA
VREF-
VREF+
PA3
PA0
PC3
VSS
PB1
PD1
PD7
PE0
VSS
VSS
VDD
CORE
VSS
VDD
CORE
VSS_PLL
BOOT1
VSS_
ANA
VDDA
VSSA
PA5
PA4
VSS
PA1
PC5
PE3
PB7
PD10
VSS
VSS
VSS
VDD
CORE
VSS
VDD_PLL
VSS
VDD
VSS
VDD
VSSA
VSSA
PA6
PF11
PB12
PG6
VSS
PD3
PD4
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
VSS
VDD
VSS
VDD
VSS
PA7
VSS
PG11
PB3
PE5
PA15
PD5
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
VSS
VDD
VSS
VDD
PC0
PG8
PG10
PB15
PA8
PA9
VSS
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
VSS
VDD
VSS
PB5
VSS
PD11
PC7
PB4
PB14
PB9
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
VSS
VDD
PB13
PF10
PF6
PC9
PD2
PC12
PC6
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
VSS
PE7
PF8
PE10
PC11
PE4
PC8
PC10
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
PE8
PD12
VDDA
1V8_REG
VDD_DSI
VDDA
1V8_DSI
VSS_DSI
NJTRST
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
PB6
PD13
VSS_
USBHS
DSI_D0N
DSI_D0P
VSS_DSI
JTDI
VDD
CORE
VSS_
PLL2
VDD_
PLL2
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
VSS
VDD
CORE
PB2
VSS_
USBHS
USB_
DM2
DSI_CKN
DSI_CKP
VSS_DSI
JTDO-
TRACE
SWO
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
PG9
VSS_
USBHS
USB_
DP1
DSI_D1N
DSI_D1P
VSS_DSI
JTMSSWDIO
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
VSS
VDDQ_
DDR
BYPASS
_REG1V8
OTG_
VBUS
VSS_
USBHS
VDD1V2_
DSI_PHY
VDD
1V2_DSI
_REG
VSS_DSI
JTCK-
SWCLK
VSS
DDR_
RESETN
DDR_
BA2
DDR_A15
DDR_A6
VSS
PA10
PA12
USB_
RREF
DDR_
DQ0
DDR_
DQ3
VSS
DDR_
DQ5
DDR_A7
DDR_A13
DDR_A9
DDR_A5
DDR_
WEN
DDR_
CASN
DDR_A12
DDR_A1
DDR_
BA1
DDR_A4
DDR_A8
DDR_
DQ9
VSS
PA11
DDR_
DQ1
DDR_
DQ7
DDR_
DQM0
DDR_
DQ2
DDR_
DQ4
DDR_ZQ
DDR_A2
DDR_A0
DDR_
CSN
DDR_
DTO0
DDR_
RASN
DDR_A11
DDR_A14
DDR_
DQ8
DDR_
DQ10
DDR_
DQ13
DDR_
DQM1
DDR_
DQ14
DDR_
DQS0N
DDR_
DQS0P
DDR_
DQ6
VSS
DDR_A3
DDR_
BA0
DDR_
ODT
DDR_
CLKN
DDR_
CLKP
DDR_A10
DDR_
DTO1
DDR_
CKE
DDR_
DQS1N
DDR_
ATO
DDR_
DQ11
DDR_
DQS1P
19143141312111098765181716152
Figure 6. STM32MP157C/FABxx LFBGA354 pinout
The above figure shows the package top view.
DS12505 Rev 561/260
122
Pinouts, pin description and alternate functionsSTM32MP157C/F