STMicroelectronics

STM32 online trainings designed by MOVE.B

The modules of the STM32 online trainings of STMicroelectronics that MOVE.B wrote, with a summary and an outline of each, and their presentations and slides on st.com.

STMicroelectronics publishes free online trainings on its STM32 microcontrollers. Each series has a set of short narrated presentations, one per peripheral or function of the MCU, and each presentation has its slides in PDF.

MOVE.B has designed modules of these trainings since 2018, working with ST’s experts. We write the technical content and the slides, and record the voice-over.

Designed by MOVE.B for STMicroelectronics: 222 modules in 8 series.

STM32H7RS online training

26 modules designed by MOVE.B, 2025 · The STM32H7RS online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
Architecture overview

An overview of the architecture of the STM32H7RS: a Cortex-M7 with a small internal Flash, built to run its application from external memory.

Outline
  • Cortex-M7 core and its caches
  • Internal memories
  • External memory interfaces
  • Bus architecture
  • Graphics and security units
11
STM32H7RS series presentation

A presentation of the STM32H7RS series: Cortex-M7 microcontrollers running up to 600 MHz, with a boot Flash and the application in external memory.

Outline
  • Position of the series in the STM32 portfolio
  • Core, memories and main peripherals
  • Lines and packages of the series
  • Typical applications
14

System

ModuleWhat it coversSlidesOn st.com
DMA 2D addressing 2DADDR

Two-dimensional addressing on the DMA channels of the STM32H7RS that support it: moving blocks of data with strides, for example a rectangle of an image.

Outline
  • Channels with 2D addressing
  • Block, burst and repeated block
  • Address offsets between bursts and blocks
  • Examples with image and buffer transfers
6
DMA circular buffering and double buffering DMACBDB

Circular buffering and double buffering with the DMA of the STM32H7RS, built from linked-list items.

Outline
  • A circular buffer with one linked-list item
  • Double buffering with two items
  • Half-transfer events
  • Processing one buffer while the other fills
5
DMA error reporting DMAErrReport

How the DMA of the STM32H7RS reports errors: the error types, their flags and the state of the channel after an error.

Outline
  • Transfer, update and user setting errors
  • Error flags and interrupts
  • Channel state after an error
  • Debugging a failed transfer
3
DMA input-output LLI control DMAIn-OutCTRL

Control of the input and output of the linked-list items in the DMA of the STM32H7RS: how the channel loads the next item and signals its end.

Outline
  • Linked-list item fields
  • Update of channel registers from memory
  • Events at the end of a block or of an item
  • Suspending and resuming a channel
4
DMA linked list DMALLT

Linked-list programming of the DMA of the STM32H7RS: a chain of transfer descriptors in memory that the channel runs without the CPU.

Outline
  • Structure of a linked-list item
  • Registers updated by each item
  • Linear and circular lists
  • Building lists with the HAL
9
DMA overview DMAOVW

An overview of the DMA controllers of the STM32H7RS: their channels, ports and the features detailed in the other DMA modules.

Outline
  • Channels and their FIFOs
  • Two master ports
  • Hardware requests and triggers
  • Linked-list programming
  • Privilege attributes of channels
11
DMA register file REGFILE

The registers of a DMA channel of the STM32H7RS and how each transfer setting maps to them.

Outline
  • Channel configuration registers
  • Transfer, source and destination registers
  • Block and address registers
  • Status and flag clearing
4
DMA transfers: hardware and software views DMATRANSFR

DMA transfers of the STM32H7RS seen from the hardware and from the software: bursts, data widths, packing and the HAL calls that set them up.

Outline
  • Single and burst transfers
  • Data width, packing and unpacking
  • Source and destination increments
  • Hardware requests and software triggers
  • The same transfer with the HAL
10
GPIO GPIO

The general-purpose I/O ports of the STM32H7RS: pin modes, output drive and alternate functions.

Outline
  • Input, output, analog and alternate function modes
  • Push-pull or open-drain output and speed settings
  • Pull-up and pull-down resistors
  • Atomic set and reset of output bits
  • Locking the configuration of a pin
15
Power control PWR

The power controller of the STM32H7RS: supplies, voltage regulation and low-power modes. The core can be supplied by an LDO or an SMPS.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop and Standby modes
  • Wake-up sources
  • Consumption in each mode
27
GPU2D

The 2D graphics processor of the STM32H7RS, which draws and transforms images for the display without the CPU.

Outline
  • Drawing operations
  • Command lists
  • Formats and blending
  • Graphics software that uses it
7

Memory

ModuleWhat it coversSlidesOn st.com
External memory manager/loader

The external memory manager and loader of the STM32Cube package for the STM32H7RS: how the boot code in internal Flash starts an application stored in external memory.

Outline
  • Boot code and application in external memory
  • Execute in place or load and run
  • Configuration of the external memories
  • Programming the external Flash
9
RAM configuration RAMCFG

The RAM configuration of the STM32H7RS: ECC on the SRAMs and how SRAM is shared between the tightly coupled memories and the system.

Outline
  • SRAM blocks and TCM
  • Shared RAM configuration
  • ECC and error reporting
  • Erase of SRAM
6
XSPI

The XSPI interfaces of the STM32H7RS, which connect serial Flash and RAM memories on up to sixteen data lines.

Outline
  • Single to hexadeca-SPI modes
  • Indirect and memory-mapped modes
  • Commands, addresses and dummy cycles
  • XSPI I/O manager
  • Execute in place from external Flash
18

Security

ModuleWhat it coversSlidesOn st.com
Security overview

The security features of the STM32H7RS, described by what they add to or change from the STM32H5.

Outline
  • Product states
  • Secure boot and the root of trust
  • Protection of external memories
  • Debug control
  • Comparison with the STM32H5
50
Asymmetric crypto ASYMCRYPTO

Asymmetric cryptography on the STM32H7RS with the public key accelerator: RSA and elliptic curve operations.

Outline
  • Modular arithmetic operations
  • RSA encryption and signature
  • ECDSA signature and verification
  • Protection against side-channel attacks
  • Use from the cryptographic library
5
Crypto (AES and SAES) CRYPTO

An introduction to the cryptographic peripherals of the STM32H7RS and the role of each one. Depending on the part, the STM32H7RS has AES, SAES, HASH, PKA and RNG units.

Outline
  • Symmetric and asymmetric cryptography
  • Hashing and random numbers
  • Hardware accelerators of the series
  • Where the cryptographic library fits
3
Crypto library CRYPTOLIB

The STM32 cryptographic library on the STM32H7RS: the algorithms it provides and how it uses the hardware accelerators.

Outline
  • Algorithms available
  • Hardware or software implementation
  • Application programming interface
  • Integration in a project
5
HASH and random number generator HASHRNG

The hash processor and the random number generator of the STM32H7RS.

Outline
  • SHA-1, SHA-2 and HMAC with the hash processor
  • Digest computation with DMA
  • True random number generator
  • Health tests and error detection of the RNG
6
Memory cipher engine MCE

The memory cipher engine of the STM32H7RS, which encrypts and decrypts on the fly the code and data in external memory.

Outline
  • Encrypted regions
  • Cipher modes
  • Keys and their protection
  • Performance with execute in place
10
Root security services RSS_SFI

The root security services of the STM32H7RS: code in system memory that the device runs at reset, such as the secure installation of firmware.

Outline
  • Where the root security services run
  • Secure firmware install (SFI)
  • Encrypted firmware and licences
  • Tools on the programming side
12
Symmetric crypto SYMCRYPTO

Symmetric cryptography on the STM32H7RS: the AES and SAES units and their chaining modes.

Outline
  • AES key sizes
  • ECB, CBC and CTR modes
  • GCM and CCM authenticated encryption
  • Keys loaded by software or from hardware
  • DMA and interrupts
6

Analog

ModuleWhat it coversSlidesOn st.com
Analog peripherals ANAPERIPH

An overview of the analog peripherals of the STM32H7RS.

Outline
  • Analog-to-digital converters
  • Temperature sensor and internal references
  • Voltage reference
  • Analog supply
3

Ecosystem

ModuleWhat it coversSlidesOn st.com
Ecosystem ECOSYS

The tools and software that support the STM32H7RS: STM32Cube configuration and programming tools, the firmware package and the boards.

Outline
  • STM32CubeMX and STM32CubeIDE
  • STM32CubeProgrammer
  • STM32Cube firmware package
  • Boards for the series
10

STM32U0 online training

22 modules designed by MOVE.B, 2024 · The STM32U0 online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
STM32U0 series presentation SERIES

A presentation of the STM32U0 series: ultra-low-power entry-level microcontrollers built on a Cortex-M0+, running up to 56 MHz.

Outline
  • Position of the series in the STM32 portfolio
  • Core, memories and main peripherals
  • Lines and packages of the series
  • Typical applications
6
Welcome session

The opening module of the STM32U0 online training: how the training is organised and where to start.

Outline
  • How the modules are grouped by chapter
  • The order suggested for a first reading
  • What each module contains: narrated slides and a PDF
  • Where to find the documentation of the series
13

System

ModuleWhat it coversSlidesOn st.com
Arm Cortex-M0+ core

The Arm Cortex-M0+ processor as integrated in the STM32U0: a 32-bit core with a two-stage pipeline.

Outline
  • Pipeline and instruction set
  • Bus interfaces to memories and peripherals
  • Exceptions and the interrupt controller
  • Memory protection unit
  • Low-power modes of the core
12
Debug and trace DBG

The debug support of the STM32U0: the Serial Wire Debug port, breakpoints and watchpoints, and how debug behaves in low-power modes.

Outline
  • Serial Wire Debug port and its pins
  • Breakpoint and watchpoint units
  • Freezing timers and watchdogs while the core is halted
  • Debug in Sleep, Stop and Standby modes
  • Device identification
11
Direct Memory Access controller DMA

The DMA controller of the STM32U0: memory-to-memory, peripheral-to-memory and memory-to-peripheral transfers that leave the CPU free.

Outline
  • Channels and their priorities (up to 12 channels)
  • Transfer directions and data sizes
  • Circular mode
  • Transfer complete, half-transfer and error interrupts
  • Programming a transfer step by step
15
Direct Memory Access Multiplexer DMAMUX

The DMA request multiplexer of the STM32U0, which connects any peripheral request to any DMA channel.

Outline
  • Request inputs and output channels
  • Synchronisation of requests with external events
  • The request generator for transfers triggered by events
  • Overrun detection
  • Configuration together with the DMA
21
Extended interrupts and events controller EXTI

The extended interrupt and event controller of the STM32U0: GPIO and peripheral lines that raise interrupts or events, including wake-up from low-power modes.

Outline
  • Configurable and direct lines
  • Rising and falling edge selection
  • Interrupt or event output
  • Wake-up from Stop modes
  • Selection of the GPIO port for each line
12
General purpose IO interface GPIO

The general-purpose I/O ports of the STM32U0: pin modes, output drive and alternate functions.

Outline
  • Input, output, analog and alternate function modes
  • Push-pull or open-drain output and speed settings
  • Pull-up and pull-down resistors
  • Atomic set and reset of output bits
  • Locking the configuration of a pin
14
Interconnect matrix IMX

The interconnect matrix of the STM32U0: the direct connections between peripherals that work without the CPU or the DMA.

Outline
  • Timers triggered by other timers
  • Peripherals that start ADC conversions
  • Comparator outputs used as timer inputs
  • Clock and event sources shared between peripherals
  • Use in low-power applications
11Not on st.com
Nested Vectored Interrupt Control NVIC

The nested vectored interrupt controller of the Cortex-M0+ in the STM32U0: interrupt priorities, preemption and the vector table.

Outline
  • Exceptions and interrupt numbers
  • Priority levels and preemption
  • Vector table and its relocation
  • Enabling, pending and clearing interrupts
  • Latency of an interrupt entry
11
Power management PWR

The power controller of the STM32U0: supplies, voltage regulation and low-power modes. The module covers the low-power run mode and the Stop modes used by battery products.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
35
Reset and clock control RCC

The reset and clock controller of the STM32U0: the clock sources, the PLL and the clock tree of the system and peripherals. The low-speed oscillators that keep running in low-power modes are covered too.

Outline
  • Internal and external oscillators
  • PLL configuration
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
27
System Configuration Controller SYSCFG

The system configuration controller of the STM32U0: memory remapping and the settings of the system that do not belong to one peripheral.

Outline
  • Memory mapped at address 0
  • I/O settings handled by SYSCFG
  • Protections of SRAM and of the configuration
  • Connections to timer break inputs
15
Tamper and backup registers TAMP

The tamper detection and backup registers of the STM32U0: inputs that detect an intrusion and the registers kept when the main supply is off.

Outline
  • Tamper inputs and their filtering
  • Erase of the backup registers on tamper
  • Timestamp on a tamper event
  • Backup registers supplied by VBAT
  • Wake-up from low-power modes
14

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32U0: organisation, read access, programming and erase. The Flash is read with 64-bit words and an ECC on each word.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
27

Security

ModuleWhat it coversSlidesOn st.com
Memory protections MEMPROTECT

The protections of the memories of the STM32U0: how code and data are protected against reading, writing or debug access.

Outline
  • Read-out protection levels
  • Write protection of Flash areas
  • Protection of code areas
  • Effect of the protections on debug and boot
19
Safety support

The features of the STM32U0 that support functional safety, and the documents and libraries ST provides for a safety application.

Outline
  • Error detection on memories
  • Clock monitoring and watchdogs
  • Supply supervision
  • Self-test libraries
  • Safety documentation
18

Analog

ModuleWhat it coversSlidesOn st.com
Analog comparators COMP

The analog comparators of the STM32U0: input selection, output routing and use as a wake-up source.

Outline
  • Inputs: pins, internal reference and DAC
  • Hysteresis and speed or power settings
  • Output to pins, timers and EXTI
  • Blanking with a timer
  • Window mode
5

Watchdogs and timers

ModuleWhat it coversSlidesOn st.com
Advanced-control, general-purpose and basic timers GPTIM

The timers of the STM32U0: counting modes, input capture, output compare and PWM. The series has advanced-control, general-purpose and basic timers.

Outline
  • Counter modes and prescaler
  • Input capture and PWM input
  • Output compare and PWM generation
  • Complementary outputs, dead time and break
  • Timer synchronisation
  • DMA burst
43
Low power timer LPTIM

The low-power timer of the STM32U0, which keeps counting in Stop modes with a low-frequency clock or external pulses.

Outline
  • Clock sources, internal or external
  • Counting and PWM in Stop mode
  • Encoder mode
  • Timeout and wake-up events
  • Triggers from other peripherals
14
Real-Time Clock RTC

The real-time clock of the STM32U0: calendar, alarms and wake-up timer, kept running in low-power modes and on VBAT.

Outline
  • Calendar in binary-coded decimal
  • Alarms and periodic wake-up
  • Smooth calibration
  • Timestamp
  • Operation on the backup domain
17

Ecosystem

ModuleWhat it coversSlidesOn st.com
Ecosystem ECOSYS

The tools and software that support the STM32U0: STM32Cube configuration and programming tools, the firmware package and the boards.

Outline
  • STM32CubeMX and STM32CubeIDE
  • STM32CubeProgrammer
  • STM32Cube firmware package
  • Boards for the series
7

STM32H5 online training

41 modules designed by MOVE.B, 2023 · The STM32H5 online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
STM32H5 series introduction

A presentation of the STM32H5 series: Cortex-M33 microcontrollers with TrustZone, running up to 250 MHz.

Outline
  • Position of the series in the STM32 portfolio
  • Core, memories and main peripherals
  • Lines and packages of the series
  • Typical applications
10

System

ModuleWhat it coversSlidesOn st.com
Bus matrix BUSMATRX

The bus matrix of the STM32H5: which masters reach which memories and peripherals.

Outline
  • Masters and slaves
  • Paths to the internal memories
  • Arbitration
  • Effect on DMA and CPU performance
8
Data cache DCACHE

The data cache of the STM32H5, which speeds up data accesses of the Cortex-M33 to external memories.

Outline
  • Where the data cache sits
  • Cacheable regions
  • Write-through and write-back behaviour
  • Maintenance operations
  • Performance monitors
10
DMA 2D addressing 2DADDR

Two-dimensional addressing on the DMA channels of the STM32H5 that support it: moving blocks of data with strides, for example a rectangle of an image.

Outline
  • Channels with 2D addressing
  • Block, burst and repeated block
  • Address offsets between bursts and blocks
  • Examples with image and buffer transfers
6
Autonomous DMA in low-power modes DMALPM

DMA transfers that continue while the STM32H5 is in a low-power mode, driven by peripheral requests without waking the CPU.

Outline
  • Autonomous mode of the DMA
  • Requests and triggers in Stop mode
  • Clock requests to the RCC
  • Use with low-power peripherals
4
DMA circular buffering and double buffering DMACBDB

Circular buffering and double buffering with the DMA of the STM32H5, built from linked-list items.

Outline
  • A circular buffer with one linked-list item
  • Double buffering with two items
  • Half-transfer events
  • Processing one buffer while the other fills
5
DMA Error Reporting DMAErrReport

How the DMA of the STM32H5 reports errors: the error types, their flags and the state of the channel after an error.

Outline
  • Transfer, update and user setting errors
  • Error flags and interrupts
  • Channel state after an error
  • Debugging a failed transfer
3
DMA Input-output LLI control DMAIn-OutCTRL

Control of the input and output of the linked-list items in the DMA of the STM32H5: how the channel loads the next item and signals its end.

Outline
  • Linked-list item fields
  • Update of channel registers from memory
  • Events at the end of a block or of an item
  • Suspending and resuming a channel
4
DMA Linked list DMALLT

Linked-list programming of the DMA of the STM32H5: a chain of transfer descriptors in memory that the channel runs without the CPU.

Outline
  • Structure of a linked-list item
  • Registers updated by each item
  • Linear and circular lists
  • Building lists with the HAL
9
Direct Memory Access Overview DMAOVW

An overview of the general-purpose DMA of the STM32H5: its channels, ports and the features detailed in the other DMA modules.

Outline
  • Channels and their FIFOs
  • Two master ports
  • Hardware requests and triggers
  • Linked-list programming
  • Security and privilege attributes of channels
9
DMA Register File REGFILE

The registers of a DMA channel of the STM32H5 and how each transfer setting maps to them.

Outline
  • Channel configuration registers
  • Transfer, source and destination registers
  • Block and address registers
  • Status and flag clearing
4
DMA transfers: hardware and software views DMATRANSFR

DMA transfers of the STM32H5 seen from the hardware and from the software: bursts, data widths, packing and the HAL calls that set them up.

Outline
  • Single and burst transfers
  • Data width, packing and unpacking
  • Source and destination increments
  • Hardware requests and software triggers
  • The same transfer with the HAL
11
Extended Interrupt Controller EXTI

The extended interrupt and event controller of the STM32H5, with lines that can be set secure or privileged.

Outline
  • Configurable and direct lines
  • GPIO line selection
  • Wake-up from Stop mode
  • Security and privilege of each line
3
GPIO GPIO

The GPIO ports of the STM32H5: modes, alternate functions and the security of each pin.

Outline
  • Input, output, analog and alternate function modes
  • Output speed and drive
  • Security and privilege of pins
  • Locking the configuration
13
Instruction cache ICACHE

The instruction cache of the STM32H5, between the Cortex-M33 and the internal and external memories.

Outline
  • Cache organisation and ways
  • Remapping of external memory regions
  • Hit and miss monitors
  • Invalidation
  • Effect on performance
10
Power controller PWR

The power controller of the STM32H5: supplies, voltage regulation and low-power modes. Depending on the part, the core is supplied by an LDO or an SMPS.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop and Standby modes
  • Wake-up sources
  • Consumption in each mode
22
Reset and clock controller RCC

The reset and clock controller of the STM32H5: the clock sources, the PLL and the clock tree of the system and peripherals. The series has three PLLs.

Outline
  • Internal and external oscillators
  • PLL configuration
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
14

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32H5: organisation, read access, programming and erase. The Flash has two banks, ECC, and an area for keys stored in the option bytes.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
16
RAM Configuration RAMCFG

The RAM configuration controller of the STM32H5: ECC on the SRAMs, write protection and erase.

Outline
  • SRAM blocks and their features
  • ECC and error reporting
  • Write protection
  • Erase of an SRAM
10

Security

ModuleWhat it coversSlidesOn st.com
Security Architecture Overview

An overview of the security architecture of the STM32H5: isolation, root of trust, protection of keys and of the debug port.

Outline
  • TrustZone and privilege isolation
  • Product states and the life cycle
  • Immutable root of trust and secure boot
  • Key storage
  • Debug control
  • Services for the application
43
Asymmetric crypto ASYMCRYPTO

Asymmetric cryptography on the STM32H5 with the public key accelerator: RSA and elliptic curve operations.

Outline
  • Modular arithmetic operations
  • RSA encryption and signature
  • ECDSA signature and verification
  • Protection against side-channel attacks
  • Use from the cryptographic library
5
Crypto CRYPTO

An introduction to the cryptographic peripherals of the STM32H5 and the role of each one. Depending on the part, the STM32H5 has AES, SAES, HASH, PKA and RNG units.

Outline
  • Symmetric and asymmetric cryptography
  • Hashing and random numbers
  • Hardware accelerators of the series
  • Where the cryptographic library fits
3
Crypto Lib CRYPTOLIB

The STM32 cryptographic library on the STM32H5: the algorithms it provides and how it uses the hardware accelerators.

Outline
  • Algorithms available
  • Hardware or software implementation
  • Application programming interface
  • Integration in a project
5
Debug Authentication

How the STM32H5 opens its debug port once the product is closed: the owner proves its right with a password or a certificate.

Outline
  • Debug access in each product state
  • Password-based authentication
  • Certificate-based authentication
  • Regression of the product state
  • Tools on the host side
46
Enhanced anti-tamper TAMP

The tamper detection of the STM32H5: passive and active tamper inputs and internal monitors, and the erase of secrets on detection.

Outline
  • Passive and active tamper inputs
  • Internal tamper sources
  • Erase of backup registers and keys
  • Timestamp and interrupts
11Not on st.com
Enhanced Key Storage KEYSTOR

How the STM32H5 stores and uses keys: hardware unique key, keys in the option bytes and keys loaded into SAES without software access.

Outline
  • Hardware unique key and derived keys
  • Keys stored in the option bytes
  • Key loading into SAES
  • Wrapping keys for storage
23
Hash and Random Number Generator HASHRNG

The hash processor and the random number generator of the STM32H5.

Outline
  • SHA-1, SHA-2 and HMAC with the hash processor
  • Digest computation with DMA
  • True random number generator
  • Health tests and error detection of the RNG
6
Product life cycle

The life cycle of a product built on the STM32H5, from an open device to a closed or locked one, and what each state allows.

Outline
  • Product states
  • Provisioning of keys and images
  • Closing the device
  • Regression and its effects
21
Root Security Services RSS_SFI

The root security services of the STM32H5: code in system memory that the device runs at reset, such as the secure installation of firmware.

Outline
  • Where the root security services run
  • Secure firmware install (SFI)
  • Encrypted firmware and licences
  • Tools on the programming side
13
Secure Manager SECMGR

The Secure Manager of the STM32H5: secure services provided by ST in the secure world, used by the application through standard interfaces.

Outline
  • What the Secure Manager provides
  • Secure boot and firmware update
  • PSA services for storage, cryptography and attestation
  • Installation of the Secure Manager
25
Security Certification SECUCERTIF

The security certifications obtained for the STM32H5 and what they mean for a product built on it.

Outline
  • PSA Certified levels
  • SESIP certification
  • What a certification covers
  • Reusing it for a product
6
Symmetric Crypto SYMCRYPTO

Symmetric cryptography on the STM32H5: the AES and SAES units and their chaining modes.

Outline
  • AES key sizes
  • ECB, CBC and CTR modes
  • GCM and CCM authenticated encryption
  • Keys loaded by software or from hardware
  • DMA and interrupts
6
Trusted Firmware-M (TFM) TFMHOWTO

Trusted Firmware-M on the STM32H5: building, provisioning and running the secure and non-secure images.

Outline
  • Structure of the TFM application
  • Flash layout
  • Building the images
  • Provisioning and first boot
9

Analog

ModuleWhat it coversSlidesOn st.com
ADC-DAC Converters ADC-DAC

The analog-to-digital and digital-to-analog converters of the STM32H5.

Outline
  • 12-bit ADCs and their channels
  • Oversampling and sampling time
  • Dual mode
  • DAC channels and sample and hold
  • Triggers and DMA
25
Analog Peripherals ANAPERIPH

An overview of the analog peripherals of the STM32H5 and of the modules that describe them.

Outline
  • Converters
  • Comparators and operational amplifiers
  • Voltage reference
  • Analog supply
4
Analog Comparators COMP

The analog comparator of the STM32H5: input selection, output routing and use as a wake-up source.

Outline
  • Inputs: pins, internal reference and DAC
  • Hysteresis and speed or power settings
  • Output to pins, timers and EXTI
  • Blanking with a timer
  • Output polarity and interrupt
13
Operational Amplifiers OPAMP

The operational amplifiers of the STM32H5: standalone use, follower and programmable gain modes.

Outline
  • Standalone and follower modes
  • Programmable gain amplifier
  • Connection to the ADC
  • Calibration
4
Voltage Reference buffer VREFBUF

The voltage reference buffer of the STM32H5, which supplies the reference voltage of the ADC and DAC and can output it on a pin.

Outline
  • Selectable reference voltages
  • Enable and high-impedance modes
  • Use with the ADC and DAC
  • Settling time and load
3

Peripherals

ModuleWhat it coversSlidesOn st.com
I3C

The I3C interface of the STM32H5, controller or target, for the MIPI I3C bus that follows I2C for sensors.

Outline
  • Controller and target roles
  • Dynamic address assignment
  • Private and broadcast transfers
  • In-band interrupts and hot-join
  • Compatibility with I2C devices
  • FIFOs and DMA
34
Low Power Timer LPTIM

The low-power timer of the STM32H5, which keeps counting in Stop modes with a low-frequency clock or external pulses.

Outline
  • Clock sources, internal or external
  • Counting and PWM in Stop mode
  • Encoder mode
  • Timeout and wake-up events
  • Triggers from other peripherals
13

Ecosystem

ModuleWhat it coversSlidesOn st.com
STM32Cube firmware CUBEFMWR

The STM32Cube firmware package of the STM32H5: drivers, middleware and examples.

Outline
  • HAL and low-layer drivers
  • Middleware components
  • Examples and applications
  • Board support packages
  • Package structure
16Not on st.com

STM32C0 online training

13 modules designed by MOVE.B, 2022 · The STM32C0 online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
STM32C0 series introduction

A presentation of the STM32C0 series: entry-level microcontrollers built on a Cortex-M0+, running up to 48 MHz.

Outline
  • Position of the series in the STM32 portfolio
  • Core, memories and main peripherals
  • Lines and packages of the series
  • Typical applications
17

System

ModuleWhat it coversSlidesOn st.com
Interconnect Matrix IMX

The interconnect matrix of the STM32C0: the direct connections between peripherals that work without the CPU or the DMA.

Outline
  • Timers triggered by other timers
  • Peripherals that start ADC conversions
  • Timer outputs used as triggers of other timers
  • Clock and event sources shared between peripherals
  • Use in low-power applications
10
Power Controller PWR

The power controller of the STM32C0: supplies, voltage regulation and low-power modes. The series runs from a single supply.

Outline
  • Supply and power-on/power-down reset
  • Main and low-power regulator modes
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
25
Backup Registers BACKUPREG

The backup registers of the STM32C0, which keep a few words of data through low-power modes.

Outline
  • Number and size of the registers
  • Retention across modes and resets
  • Typical uses
6
Reset and Clock Controller

The reset and clock controller of the STM32C0: the clock sources, the dividers and the clock tree of the system and peripherals. The internal 48 MHz oscillator runs the system at full speed without a PLL or an external crystal.

Outline
  • Internal and external oscillators
  • System clock selection and the HSI48 divider
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
27
System Configuration Controller SYSCFG

The system configuration controller of the STM32C0: memory remapping and the settings of the system that do not belong to one peripheral.

Outline
  • Memory mapped at address 0
  • I/O settings handled by SYSCFG
  • Protections of SRAM and of the configuration
  • Connections to timer break inputs
15

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32C0: organisation, read access, programming and erase. The Flash is read with 64-bit words and an ECC on each word.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
28

Security

ModuleWhat it coversSlidesOn st.com
Memory protections MEMPROTECT

The protections of the memories of the STM32C0: how code and data are protected against reading, writing or debug access.

Outline
  • Read-out protection levels
  • Write protection of Flash areas
  • Protection of code areas
  • Effect of the protections on debug and boot
20

Peripherals

ModuleWhat it coversSlidesOn st.com
Controller area network with flexible data rate FDCAN

The FDCAN controller of the STM32C092 parts: CAN 2.0 and CAN FD frames with a flexible data rate.

Outline
  • Classic CAN and CAN FD frames
  • Bit timing and data-phase rate
  • Message RAM and its sections
  • Acceptance filters
  • Transmit queue and FIFOs
  • Error handling and test modes
24
USB Full Speed Device interface USB

The USB full-speed device interface of the STM32C0 parts that have it, which can run without an external crystal thanks to the internal 48 MHz oscillator and the clock recovery system.

Outline
  • Endpoints and packet memory
  • Enumeration and transfer types
  • Clock from the internal oscillator
  • USB device library
12

Watchdogs and timers

ModuleWhat it coversSlidesOn st.com
General-Purpose Timer GPTIM

The timers of the STM32C0: counting modes, input capture, output compare and PWM. The series has an advanced-control timer and general-purpose timers.

Outline
  • Counter modes and prescaler
  • Input capture and PWM input
  • Output compare and PWM generation
  • Complementary outputs, dead time and break
  • Timer synchronisation
  • DMA burst
43
Real-Time Clock RTC

The real-time clock of the STM32C0: calendar and alarm, kept running in the low-power modes.

Outline
  • Calendar in binary-coded decimal
  • Alarm
  • Smooth calibration
  • RTC domain and its reset
16

Ecosystem

ModuleWhat it coversSlidesOn st.com
Ecosystem

The tools and software that support the STM32C0: STM32Cube configuration and programming tools, the firmware package and the boards.

Outline
  • STM32CubeMX and STM32CubeIDE
  • STM32CubeProgrammer
  • STM32Cube firmware package
  • Boards for the series
6

STM32U5 online training

43 modules designed by MOVE.B, 2021 · The STM32U5 online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
STM32U5 series introduction

A presentation of the STM32U5 series: an ultra-low-power family built on a Cortex-M33 with TrustZone, running up to 160 MHz.

Outline
  • Position of the series in the STM32 portfolio
  • Core, memories and main peripherals
  • Lines and packages of the series
  • Typical applications
9

System

ModuleWhat it coversSlidesOn st.com
Bus matrix BUSMATRX

The bus matrix of the STM32U5: which masters reach which memories and peripherals, and the paths that stay active in low-power modes.

Outline
  • Masters and slaves of the matrix
  • Main and low-power domains
  • Arbitration
  • Effect on DMA and CPU performance
8
Data cache DCACHE

The data cache of the STM32U5, which speeds up data accesses of the Cortex-M33 to external memories.

Outline
  • Where the data cache sits
  • Cacheable regions
  • Write-through and write-back behaviour
  • Maintenance operations
  • Performance monitors
10
DMA 2D addressing DMA2DADDR

Two-dimensional addressing on the DMA channels of the STM32U5 that support it: moving blocks of data with strides, for example a rectangle of an image.

Outline
  • Channels with 2D addressing
  • Block, burst and repeated block
  • Address offsets between bursts and blocks
  • Examples with image and buffer transfers
6
Autonomous DMA in low-power modes DMALPM

DMA transfers that continue while the STM32U5 is in a low-power mode, driven by peripheral requests without waking the CPU.

Outline
  • Autonomous mode of the DMA
  • Requests and triggers in Stop mode
  • Clock requests to the RCC
  • Use with low-power peripherals
4
DMA circular buffering and double buffering DMACBDB

Circular buffering and double buffering with the DMA of the STM32U5, built from linked-list items.

Outline
  • A circular buffer with one linked-list item
  • Double buffering with two items
  • Half-transfer events
  • Processing one buffer while the other fills
5
DMA Error Reporting DMAErrReport

How the DMA of the STM32U5 reports errors: the error types, their flags and the state of the channel after an error.

Outline
  • Transfer, update and user setting errors
  • Error flags and interrupts
  • Channel state after an error
  • Debugging a failed transfer
3
DMA Input-output LLI control DMAIn-OutCTRL

Control of the input and output of the linked-list items in the DMA of the STM32U5: how the channel loads the next item and signals its end.

Outline
  • Linked-list item fields
  • Update of channel registers from memory
  • Events at the end of a block or of an item
  • Suspending and resuming a channel
4
DMA Linked list DMALL

Linked-list programming of the DMA of the STM32U5: a chain of transfer descriptors in memory that the channel runs without the CPU.

Outline
  • Structure of a linked-list item
  • Registers updated by each item
  • Linear and circular lists
  • Building lists with the HAL
9
Direct Memory Access Overview DMAOVW

An overview of the general-purpose DMA of the STM32U5: its channels, ports and the features detailed in the other DMA modules.

Outline
  • Channels and their FIFOs
  • Two master ports
  • Hardware requests and triggers
  • Linked-list programming
  • Security and privilege attributes of channels
9
DMA Register File REGFILE

The registers of a DMA channel of the STM32U5 and how each transfer setting maps to them.

Outline
  • Channel configuration registers
  • Transfer, source and destination registers
  • Block and address registers
  • Status and flag clearing
5
DMA transfers: hardware and software views DMATRANSFR

DMA transfers of the STM32U5 seen from the hardware and from the software: bursts, data widths, packing and the HAL calls that set them up.

Outline
  • Single and burst transfers
  • Data width, packing and unpacking
  • Source and destination increments
  • Hardware requests and software triggers
  • The same transfer with the HAL
14
Extended Interrupt Controller EXTI

The extended interrupt and event controller of the STM32U5, with lines that can be set secure or privileged.

Outline
  • Configurable and direct lines
  • GPIO line selection
  • Wake-up from Stop modes
  • Security and privilege of each line
3
GPIO and LPGPIO GPIO_LPGPIO

The GPIO ports of the STM32U5 and the low-power GPIO that stays usable in Stop 2 mode for autonomous peripherals.

Outline
  • GPIO modes and alternate functions
  • Security and privilege of pins
  • Low-power GPIO
  • Pins driven in low-power modes
15
Instruction cache ICACHE

The instruction cache of the STM32U5, between the Cortex-M33 and the internal and external memories.

Outline
  • Cache organisation and ways
  • Remapping of external memory regions
  • Hit and miss monitors
  • Invalidation
  • Effect on performance and consumption
10
Power Management PWRMNGMNT

The power controller of the STM32U5: supplies, voltage regulation and low-power modes. Depending on the part, the core is supplied by an LDO or an SMPS step-down converter; several Stop modes keep the SRAM content.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
35
Reset and clock controller RST_CLK_CTRL

The reset and clock controller of the STM32U5: the clock sources, the PLL and the clock tree of the system and peripherals. The clocks of the peripherals that work in Stop modes are covered too.

Outline
  • Internal and external oscillators
  • PLL configuration
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
18
ULPMark-PP and LPBAM use-case consumption LPBAM

The consumption of the STM32U5 measured with the ULPMark-PeripheralProfile benchmark, and the low-power background autonomous mode (LPBAM) in which peripherals and DMA work while the CPU is stopped.

Outline
  • What ULPMark-PP measures
  • Peripherals that run autonomously in Stop modes
  • LPBAM chains built with the DMA
  • A use case and its consumption
16

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32U5: organisation, read access, programming and erase. The Flash has two banks and supports TrustZone and ECC.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
13
RAM Configuration RAMCFG

The RAM configuration controller of the STM32U5: ECC on the SRAMs, write protection, erase and wait states.

Outline
  • SRAM blocks and their features
  • ECC and error reporting
  • Write protection of pages
  • Software erase of an SRAM
  • Wait states
10

Security

ModuleWhat it coversSlidesOn st.com
Asymmetric crypto ASYMCRYPTO

Asymmetric cryptography on the STM32U5 with the public key accelerator: RSA and elliptic curve operations.

Outline
  • Modular arithmetic operations
  • RSA encryption and signature
  • ECDSA signature and verification
  • Protection against side-channel attacks
  • Use from the cryptographic library
7
Crypto CRYPTO

An introduction to the cryptographic peripherals of the STM32U5 and the role of each one. Depending on the part, the STM32U5 has AES, SAES, HASH, PKA and RNG units.

Outline
  • Symmetric and asymmetric cryptography
  • Hashing and random numbers
  • Hardware accelerators of the series
  • Where the cryptographic library fits
3
Crypto Lib U5CRYPTOLIB

The STM32 cryptographic library on the STM32U5: the algorithms it provides and how it uses the hardware accelerators.

Outline
  • Algorithms available
  • Hardware or software implementation
  • Application programming interface
  • Integration in a project
3
Enhanced key storage KEYSTOR

How the STM32U5 protects keys: hardware unique keys, keys that software never reads and the secure AES unit.

Outline
  • Hardware unique key and derived keys
  • Keys loaded into SAES by hardware
  • Wrapping and unwrapping keys
  • Erase of keys on tamper
11
Hash and Random Number Generator HASH_RNG

The hash processor and the random number generator of the STM32U5.

Outline
  • SHA-1, SHA-2 and HMAC with the hash processor
  • Digest computation with DMA
  • True random number generator
  • Health tests and error detection of the RNG
6
Security overview SECOVW

An overview of the security features of the STM32U5 and how they fit together in a secure product.

Outline
  • TrustZone isolation
  • Secure boot and firmware update
  • Protection of memories and keys
  • Tamper detection
  • Cryptographic accelerators
14
Root Security Services RSS_SFI

The root security services of the STM32U5: code in system memory that the device runs at reset, such as the secure installation of firmware.

Outline
  • Where the root security services run
  • Secure firmware install (SFI)
  • Encrypted firmware and licences
  • Tools on the programming side
10
Security Certification SECUCERTIF

The security certifications obtained for the STM32U5 and what they mean for a product built on it.

Outline
  • PSA Certified levels
  • SESIP certification
  • What a certification covers
  • Reusing it for a product
6
Symmetric Crypto SYMCRYPTO

Symmetric cryptography on the STM32U5: the AES and SAES units and their chaining modes.

Outline
  • AES key sizes
  • ECB, CBC and CTR modes
  • GCM and CCM authenticated encryption
  • Keys loaded by software or from hardware
  • DMA and interrupts
6
TFM flash memory footprint TFMFLASHFOOTPRINT

The Flash memory used by Trusted Firmware-M on the STM32U5, and how the layout of the Flash is set.

Outline
  • Areas of the Flash layout
  • Size of the secure images
  • Space left for the application
  • Changing the layout
8
TFM introduction TFMINTRO

An introduction to Trusted Firmware-M (TFM), the reference secure software for Armv8-M, as provided for the STM32U5.

Outline
  • What TFM provides
  • Secure and non-secure images
  • Secure boot
  • PSA services
6
TFM offer on the STM32U5 TFMOFFER

What the STM32Cube package of the STM32U5 provides around Trusted Firmware-M.

Outline
  • Applications provided
  • Secure boot and update
  • Services offered to the non-secure application
  • Tools for building and provisioning
12
TFM performance: secure boot timing TFMPERFSECBOOT

The time the secure boot of Trusted Firmware-M takes on the STM32U5, and what it depends on.

Outline
  • Steps of the secure boot
  • Measured boot times
  • Effect of image size and cryptography
  • Settings that shorten the boot
5
TFM pointers TFMPOINTERS

Where to find the documentation, sources and examples of Trusted Firmware-M for the STM32U5.

Outline
  • Documentation
  • Sources in the firmware package
  • Examples and tools
4

Analog

ModuleWhat it coversSlidesOn st.com
ADC-DAC Converters ADC-DAC

The analog-to-digital and digital-to-analog converters of the STM32U5, including the ADC that works in low-power modes.

Outline
  • 14-bit and 12-bit ADCs
  • Oversampling and sampling time
  • ADC conversions in Stop modes
  • DAC channels and sample and hold
  • Triggers and DMA
20
Analog Peripherals ANAPERIPH

An overview of the analog peripherals of the STM32U5 and of the modules that describe them.

Outline
  • Converters
  • Comparators and operational amplifiers
  • Voltage reference
  • Analog supply
4
Analog Comparators COMP

The analog comparators of the STM32U5: input selection, output routing and use as a wake-up source.

Outline
  • Inputs: pins, internal reference and DAC
  • Hysteresis and speed or power settings
  • Output to pins, timers and EXTI
  • Blanking with a timer
  • Window mode
4
Operational Amplifiers OPAMP

The operational amplifiers of the STM32U5: standalone use, follower and programmable gain modes.

Outline
  • Standalone and follower modes
  • Programmable gain amplifier
  • Connection to the ADC
  • Low-power mode
4
Voltage Reference buffer VREFBUF

The voltage reference buffer of the STM32U5, which supplies the reference voltage of the ADC and DAC and can output it on a pin.

Outline
  • Selectable reference voltages
  • Enable and high-impedance modes
  • Use with the ADC and DAC
  • Settling time and load
3

Peripherals

ModuleWhat it coversSlidesOn st.com
Low Power Timer LPTIM

The low-power timer of the STM32U5, which keeps counting in Stop modes with a low-frequency clock or external pulses.

Outline
  • Clock sources, internal or external
  • Counting and PWM in Stop mode
  • Encoder mode
  • Timeout and wake-up events
  • Triggers from other peripherals
15
Multi-function digital filter and audio digital filter MDF-ADF

The multi-function digital filter and the audio digital filter of the STM32U5, which process the bit streams of sigma-delta modulators and digital microphones.

Outline
  • Serial inputs and clock
  • Filter chain and decimation
  • Sound activity detection
  • Audio digital filter in low-power modes
  • Use with microphones and sensors
55

Ecosystem

ModuleWhat it coversSlidesOn st.com
STM32Cube Firmware CUBEFMWR

The STM32Cube firmware package of the STM32U5: drivers, middleware and examples.

Outline
  • HAL and low-layer drivers
  • Middleware components
  • Examples and applications
  • Board support packages
  • Package structure
13
Ecosystem ECOSYS

The tools and software that support the STM32U5: STM32Cube configuration and programming tools, the firmware package and the boards.

Outline
  • STM32CubeMX and STM32CubeIDE
  • STM32CubeProgrammer
  • STM32Cube firmware package
  • Boards for the series
17

STM32L5 online training

25 modules designed by MOVE.B, 2020 · The STM32L5 online training on st.com

System

ModuleWhat it coversSlidesOn st.com
Arm Cortex-M33 core

The Arm Cortex-M33 processor as integrated in the STM32L5: an Armv8-M core with TrustZone, a floating-point unit and DSP instructions, running up to 110 MHz.

Outline
  • Pipeline and instruction set
  • Bus interfaces to memories and peripherals
  • Exceptions and the interrupt controller
  • Memory protection unit
  • Low-power modes of the core
9
Boot configuration BOOT

How the STM32L5 selects its boot address, with or without TrustZone enabled.

Outline
  • Boot pin and option bytes
  • Secure and non-secure boot addresses
  • Boot from Flash, SRAM or system memory
  • Boot lock
  • Bootloader interfaces
11
Debug Interface DBG

The debug support of the STM32L5: the Serial Wire Debug port, breakpoints and watchpoints, and how debug behaves in low-power modes. With TrustZone, debug access to the secure world is controlled separately.

Outline
  • Serial Wire Debug port and its pins
  • Breakpoint and watchpoint units
  • Freezing timers and watchdogs while the core is halted
  • Debug in Sleep, Stop and Standby modes
  • Device identification
17
Direct Memory Access DMA+DMAMUX

The DMA controller of the STM32L5: memory-to-memory, peripheral-to-memory and memory-to-peripheral transfers that leave the CPU free.

Outline
  • Channels and their priorities (two DMA controllers with a request multiplexer)
  • Transfer directions and data sizes
  • Circular mode
  • Transfer complete, half-transfer and error interrupts
  • Programming a transfer step by step
24
Extended Interrupt Controller EXTI

The extended interrupt and event controller of the STM32L5: GPIO and peripheral lines that raise interrupts or events, including wake-up from low-power modes. Each line can be set secure or non-secure.

Outline
  • Configurable and direct lines
  • Rising and falling edge selection
  • Interrupt or event output
  • Wake-up from Stop modes
  • Selection of the GPIO port for each line
14
Instruction cache ICACHE

The instruction cache of the STM32L5, which speeds up code run from the internal Flash and from external memory.

Outline
  • Cache organisation and ways
  • Cacheable regions and remapping of external memory
  • Hit and miss monitors
  • Invalidation and maintenance
  • Effect on performance and consumption
15
Interconnect Matrix IMX

The interconnect matrix of the STM32L5: the direct connections between peripherals that work without the CPU or the DMA.

Outline
  • Timers triggered by other timers
  • Peripherals that start ADC conversions
  • Comparator outputs used as timer inputs
  • Clock and event sources shared between peripherals
  • Use in low-power applications
9
Nested Vectored Interrupt Control NVIC

The nested vectored interrupt controller of the Cortex-M33 in the STM32L5: interrupt priorities, preemption and the vector table.

Outline
  • Exceptions and interrupt numbers
  • Priority levels and preemption
  • Vector table and its relocation
  • Enabling, pending and clearing interrupts
  • Latency of an interrupt entry
15
Power Control PWR

The power controller of the STM32L5: supplies, voltage regulation and low-power modes. Some parts add an SMPS step-down converter to lower the consumption.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
45
Reset and Clock Control RCC

The reset and clock controller of the STM32L5: the clock sources, the PLL and the clock tree of the system and peripherals. The clock settings can be restricted to the secure world.

Outline
  • Internal and external oscillators
  • PLL configuration
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
26
System Configuration Controller SYSCFG

The system configuration controller of the STM32L5: memory remapping and the settings of the system that do not belong to one peripheral.

Outline
  • Memory mapped at address 0
  • I/O settings handled by SYSCFG
  • Protections of SRAM and of the configuration
  • Connections to timer break inputs
11
Tamper and Backup Registers TAMP

The tamper detection and backup registers of the STM32L5: inputs that detect an intrusion and the registers kept when the main supply is off.

Outline
  • Tamper inputs and their filtering
  • Erase of the backup registers on tamper
  • Timestamp on a tamper event
  • Backup registers supplied by VBAT
  • Wake-up from low-power modes
14

Memory

ModuleWhat it coversSlidesOn st.com
Flash memory FLASH

The embedded Flash memory of the STM32L5: organisation, read access, programming and erase. With TrustZone, parts of the Flash are declared secure by watermarks in the option bytes.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
28
Flexible Static Memory Controller FSMC

The flexible static memory controller of the STM32L5, for external SRAM, PSRAM, NOR and NAND memories and LCD modules.

Outline
  • Banks and address mapping
  • Asynchronous and synchronous modes
  • Timing settings
  • NAND Flash access
  • LCD interface
16
OctoSPI interface OCTOSPI

The OCTOSPI interface of the STM32L5, which connects serial Flash and RAM memories on one, two, four or eight data lines.

Outline
  • Single, dual, quad and octal modes
  • Indirect, status-polling and memory-mapped modes
  • Commands, addresses and dummy cycles
  • Execute in place from external Flash
  • Use with the on-the-fly decryption engine
17

Security

ModuleWhat it coversSlidesOn st.com
On-the-fly decryption engine OTFDEC

The on-the-fly decryption engine of the STM32L5, which decrypts code and data read from external memory through the OCTOSPI.

Outline
  • Encrypted regions and their keys
  • AES in counter mode
  • Encrypting the image to program
  • Security of the keys
15
TrustZone TRZ

TrustZone on the STM32L5: how memories, peripherals and interrupts are divided between the secure and the non-secure world.

Outline
  • Secure and non-secure states of the Cortex-M33
  • Security attribution unit and implementation-defined attribution
  • Calls between the two worlds
  • Secure memories and peripherals
  • Enabling TrustZone in the option bytes
31

Peripherals

ModuleWhat it coversSlidesOn st.com
Digital Filter for SD Modulators interface DFSDM

The DFSDM of the STM32L5, which filters the bit streams of external sigma-delta modulators and digital microphones.

Outline
  • Serial input channels
  • Sinc filters and integrators
  • Extremes detector and analog watchdog
  • Short-circuit detector
  • Microphone and sensor applications
25
Controller area network with flexible data rate FDCAN

The FDCAN controller of the STM32L5: CAN 2.0 and CAN FD frames with a flexible data rate.

Outline
  • Classic CAN and CAN FD frames
  • Bit timing and data-phase rate
  • Message RAM and its sections
  • Acceptance filters
  • Transmit queue and FIFOs
  • Error handling and test modes
23
Global TrustZone Controller GTZC

The global TrustZone controller of the STM32L5, which sets the security of the peripherals and of the internal and external memories.

Outline
  • Security controller for peripherals
  • Block-based protection of SRAM
  • Watermarks for external memories
  • Illegal access detection and its interrupt
10
Serial audio interface SAI

The serial audio interface of the STM32L5, for audio codecs and digital microphones.

Outline
  • Two sub-blocks and their modes
  • I2S, PCM, TDM and AC'97 protocols
  • Slots and frames
  • PDM interface for microphones
  • FIFO and DMA
33
Touch Sensing Controller TSC

The touch sensing controller of the STM32L5, which measures capacitive sensors for buttons, sliders and wheels.

Outline
  • Charge-transfer acquisition principle
  • Groups, channels and sampling capacitors
  • Acquisition sequence
  • Touch sensing library
18
USB Type-C power delivery interface UCPD

The USB Type-C and Power Delivery controller of the STM32L5: cable detection on the CC lines and the Power Delivery messages.

Outline
  • Type-C attach and detach on CC1 and CC2
  • Source, sink and dual-role power
  • Power Delivery message transmit and receive
  • Fast role swap
  • Firmware stack and examples
23

Watchdogs and timers

ModuleWhat it coversSlidesOn st.com
General-Purpose Timer GPTIM

The timers of the STM32L5: counting modes, input capture, output compare and PWM. The series has advanced-control, general-purpose and basic timers.

Outline
  • Counter modes and prescaler
  • Input capture and PWM input
  • Output compare and PWM generation
  • Complementary outputs, dead time and break
  • Timer synchronisation
  • DMA burst
44
Real-Time Clock RTC

The real-time clock of the STM32L5: calendar, alarms and wake-up timer, kept running in low-power modes and on VBAT.

Outline
  • Calendar in binary-coded decimal
  • Alarms and periodic wake-up
  • Smooth calibration
  • Timestamp
  • Operation on the backup domain
18

STM32G4 online training

27 modules designed by MOVE.B, 2019 · The STM32G4 online training on st.com

System

ModuleWhat it coversSlidesOn st.com
Arm Cortex-M4 core

The Arm Cortex-M4 processor as integrated in the STM32G4: a core with DSP instructions and a single-precision floating-point unit, running up to 170 MHz.

Outline
  • Pipeline and instruction set
  • Bus interfaces to memories and peripherals
  • Exceptions and the interrupt controller
  • Memory protection unit
  • Low-power modes of the core
9
Debug Interface DBG

The debug support of the STM32G4: the Serial Wire Debug port, breakpoints and watchpoints, and how debug behaves in low-power modes. The Cortex-M4 adds instrumentation trace output on the SWO pin.

Outline
  • Serial Wire Debug port and its pins
  • Breakpoint and watchpoint units
  • Freezing timers and watchdogs while the core is halted
  • Debug in Sleep, Stop and Standby modes
  • Device identification
16
Extended Interrupt Controller EXTI

The extended interrupt and event controller of the STM32G4: GPIO and peripheral lines that raise interrupts or events, including wake-up from low-power modes.

Outline
  • Configurable and direct lines
  • Rising and falling edge selection
  • Interrupt or event output
  • Wake-up from Stop modes
  • Selection of the GPIO port for each line
12
General Purpose IO Interface GPIO

The general-purpose I/O ports of the STM32G4: pin modes, output drive and alternate functions.

Outline
  • Input, output, analog and alternate function modes
  • Push-pull or open-drain output and speed settings
  • Pull-up and pull-down resistors
  • Atomic set and reset of output bits
  • Locking the configuration of a pin
15
Interconnect Matrix IMX

The interconnect matrix of the STM32G4: the direct connections between peripherals that work without the CPU or the DMA.

Outline
  • Timers triggered by other timers
  • Peripherals that start ADC conversions
  • Comparator outputs used as timer inputs
  • Clock and event sources shared between peripherals
  • Use in low-power applications
11
Nested Vectored Interrupt Control NVIC

The nested vectored interrupt controller of the Cortex-M4 in the STM32G4: interrupt priorities, preemption and the vector table.

Outline
  • Exceptions and interrupt numbers
  • Priority levels and preemption
  • Vector table and its relocation
  • Enabling, pending and clearing interrupts
  • Latency of an interrupt entry
12
Power Control PWR

The power controller of the STM32G4: supplies, voltage regulation and low-power modes. The regulator has a boost mode for the highest frequency.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
36
Reset and Clock Control RCC

The reset and clock controller of the STM32G4: the clock sources, the PLL and the clock tree of the system and peripherals. The 48 MHz internal oscillator for USB is trimmed by the clock recovery system.

Outline
  • Internal and external oscillators
  • PLL configuration
  • System, bus and peripheral clocks
  • Clock security system
  • Reset sources and flags
23
System Configuration Controller SYSCFG

The system configuration controller of the STM32G4: memory remapping and the settings of the system that do not belong to one peripheral.

Outline
  • Memory mapped at address 0
  • I/O settings handled by SYSCFG
  • Protections of SRAM and of the configuration
  • Connections to timer break inputs
18
Tamper and Backup Registers TAMP

The tamper detection and backup registers of the STM32G4: inputs that detect an intrusion and the registers kept when the main supply is off.

Outline
  • Tamper inputs and their filtering
  • Erase of the backup registers on tamper
  • Timestamp on a tamper event
  • Backup registers supplied by VBAT
  • Wake-up from low-power modes
11

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32G4: organisation, read access, programming and erase. Depending on the part, the Flash has one or two banks.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
31
Flexible memory controller FMC

The flexible memory controller of the STM32G4, which connects external SRAM, PSRAM, NOR and NAND memories and LCD modules.

Outline
  • Memory banks and their address ranges
  • Asynchronous and synchronous access modes
  • Timing settings
  • NAND Flash with ECC
  • Driving an LCD with an 8080 or 6800 interface
16

Security

ModuleWhat it coversSlidesOn st.com
Memory protections MEMPROTECT

The protections of the memories of the STM32G4: how code and data are protected against reading, writing or debug access.

Outline
  • Read-out protection levels
  • Write protection of Flash areas
  • Proprietary code readout protection
  • Securable memory area
  • Effect of the protections on debug and boot
18

Analog

ModuleWhat it coversSlidesOn st.com
Analog-to-digital converter ADC

The analog-to-digital converters of the STM32G4: 12-bit successive-approximation ADCs with up to 4 Msps per ADC and hardware oversampling.

Outline
  • Channels, regular and injected groups
  • Sampling time and resolution
  • Hardware oversampling up to 16-bit results
  • Dual mode with two ADCs
  • Analog watchdogs
  • Triggers from timers and DMA
34
Comparators COMP

The analog comparators of the STM32G4: input selection, output routing and use as a wake-up source.

Outline
  • Inputs: pins, internal reference and DAC
  • Hysteresis and speed or power settings
  • Output to pins, timers and EXTI
  • Blanking with a timer
  • Window mode
15
Digital-to-analog converter DAC

The digital-to-analog converter of the STM32G4: output modes, triggers and waveform generation. The STM32G4 has buffered DAC channels for external loads and fast unbuffered channels for internal use.

Outline
  • Channels and output buffer
  • Data formats and alignment
  • Conversion triggers and DMA
  • Noise and triangle wave generation
  • Sample and hold mode
24
Voltage Reference Buffer VREFBUF

The voltage reference buffer of the STM32G4, which supplies the reference voltage of the ADC and DAC and can output it on a pin.

Outline
  • Selectable reference voltages
  • Enable and high-impedance modes
  • Use with the ADC and DAC
  • Settling time and load
7

Peripherals

ModuleWhat it coversSlidesOn st.com
CORDIC co-processor CORDIC

The CORDIC co-processor of the STM32G4, which computes trigonometric, hyperbolic and other mathematical functions in fixed point.

Outline
  • Functions available
  • Fixed-point formats q1.31 and q1.15
  • Precision and number of cycles
  • Zero-overhead and DMA modes
  • Example in motor control
36
Filter Math Accelerator FMAC

The filter math accelerator of the STM32G4, which runs FIR and IIR filters and vector operations in hardware.

Outline
  • FIR and IIR filters
  • Input, coefficient and output buffers
  • Fixed-point format q1.15
  • Feeding the buffers by DMA or by the CPU
  • Use in digital power and audio
28
Controller area network with flexible data rate FDCAN

The FDCAN controller of the STM32G4: CAN 2.0 and CAN FD frames with a flexible data rate.

Outline
  • Classic CAN and CAN FD frames
  • Bit timing and data-phase rate
  • Message RAM and its sections
  • Acceptance filters
  • Transmit queue and FIFOs
  • Error handling and test modes
23
LPUART Interface LPUART

The low-power UART of the STM32G4, which keeps receiving serial data in Stop mode with a 32.768 kHz clock.

Outline
  • Clock sources and baud rates
  • Reception in Stop mode
  • Wake-up on start bit or address match
  • FIFOs and DMA
  • Differences with the USART
21
USART Interface USART

The USART of the STM32G4: asynchronous and synchronous serial communication and the protocols built on it.

Outline
  • Frame format and baud rate
  • FIFOs and DMA
  • Hardware flow control
  • LIN, IrDA, smartcard and RS-485 modes
  • Wake-up from Stop mode
27
USB Type-C Power Delivery Interface UCPD

The USB Type-C and Power Delivery controller of the STM32G4: cable detection on the CC lines and the Power Delivery messages.

Outline
  • Type-C attach and detach on CC1 and CC2
  • Source, sink and dual-role power
  • Power Delivery message transmit and receive
  • Fast role swap
  • Firmware stack and examples
23
Infrared Timer IRTIM

The infrared interface of the STM32G4, which combines two timer outputs to drive an infrared LED for remote controls.

Outline
  • Carrier and envelope signals from two timers
  • Output on a high-drive pin
  • Modulation schemes for IR protocols
12

Watchdogs and timers

ModuleWhat it coversSlidesOn st.com
General Purpose Timer GPTIM

The timers of the STM32G4: counting modes, input capture, output compare and PWM. The STM32G4 timers include motor-control features and encoder interfaces.

Outline
  • Counter modes and prescaler
  • Input capture and PWM input
  • Output compare and PWM generation
  • Complementary outputs, dead time and break
  • Timer synchronisation
  • DMA burst
56

Ecosystem

ModuleWhat it coversSlidesOn st.com
STM32CubeG4 firmware package

The STM32Cube firmware package of the STM32G4: drivers, middleware and examples.

Outline
  • HAL and low-layer drivers
  • Middleware components
  • Examples and applications
  • Board support packages
  • Package structure
12
STM32G4 boards BOARDS

The ST boards available for the STM32G4, from the Nucleo boards to the evaluation boards.

Outline
  • Nucleo boards and their connectors
  • Discovery and evaluation boards
  • On-board debugger
  • Choosing a board for a project
9

STM32G0 online training

25 modules designed by MOVE.B, 2018 · The STM32G0 online training on st.com

Introduction

ModuleWhat it coversSlidesOn st.com
Welcome session

The opening module of the STM32G0 online training: how the training is organised and where to start.

Outline
  • How the modules are grouped by chapter
  • The order suggested for a first reading
  • What each module contains: narrated slides and a PDF
  • Where to find the documentation of the series
9

System

ModuleWhat it coversSlidesOn st.com
Arm Cortex-M0+ core

The Arm Cortex-M0+ processor as integrated in the STM32G0: a 32-bit core with a two-stage pipeline, running up to 64 MHz.

Outline
  • Pipeline and instruction set
  • Bus interfaces to memories and peripherals
  • Exceptions and the interrupt controller
  • Memory protection unit
  • Low-power modes of the core
11
Debug DBG

The debug support of the STM32G0: the Serial Wire Debug port, breakpoints and watchpoints, and how debug behaves in low-power modes.

Outline
  • Serial Wire Debug port and its pins
  • Breakpoint and watchpoint units
  • Freezing timers and watchdogs while the core is halted
  • Debug in Sleep, Stop and Standby modes
  • Device identification
8
Direct Memory Access Controller DMA

The DMA controller of the STM32G0: memory-to-memory, peripheral-to-memory and memory-to-peripheral transfers that leave the CPU free.

Outline
  • Channels and their priorities (up to 12 channels)
  • Transfer directions and data sizes
  • Circular mode
  • Transfer complete, half-transfer and error interrupts
  • Programming a transfer step by step
14
Direct Memory Access Multiplexer DMAMUX

The DMA request multiplexer of the STM32G0, which connects any peripheral request to any DMA channel.

Outline
  • Request inputs and output channels
  • Synchronisation of requests with external events
  • The request generator for transfers triggered by events
  • Overrun detection
  • Configuration together with the DMA
20
Extended interrupt and event controller EXTI

The extended interrupt and event controller of the STM32G0: GPIO and peripheral lines that raise interrupts or events, including wake-up from low-power modes.

Outline
  • Configurable and direct lines
  • Rising and falling edge selection
  • Interrupt or event output
  • Wake-up from Stop modes
  • Selection of the GPIO port for each line
11
General-purpose inputs and outputs GPIO

The general-purpose I/O ports of the STM32G0: pin modes, output drive and alternate functions.

Outline
  • Input, output, analog and alternate function modes
  • Push-pull or open-drain output and speed settings
  • Pull-up and pull-down resistors
  • Atomic set and reset of output bits
  • Locking the configuration of a pin
13
Interconnect Matrix IMX

The interconnect matrix of the STM32G0: the direct connections between peripherals that work without the CPU or the DMA.

Outline
  • Timers triggered by other timers
  • Peripherals that start ADC conversions
  • Comparator outputs used as timer inputs
  • Clock and event sources shared between peripherals
  • Use in low-power applications
10
Nested Vectored Interrupt Control NVIC

The nested vectored interrupt controller of the Cortex-M0+ in the STM32G0: interrupt priorities, preemption and the vector table.

Outline
  • Exceptions and interrupt numbers
  • Priority levels and preemption
  • Vector table and its relocation
  • Enabling, pending and clearing interrupts
  • Latency of an interrupt entry
10
Power Controller PWR

The power controller of the STM32G0: supplies, voltage regulation and low-power modes. The module also covers the brown-out and programmable voltage detectors.

Outline
  • Power supplies and their supervision
  • Voltage regulator and its ranges
  • Run, Sleep, Stop, Standby and Shutdown modes
  • Wake-up sources
  • Consumption in each mode
38
Tamper and Backup Registers TAMP

The tamper detection and backup registers of the STM32G0: inputs that detect an intrusion and the registers kept when the main supply is off.

Outline
  • Tamper inputs and their filtering
  • Erase of the backup registers on tamper
  • Timestamp on a tamper event
  • Backup registers supplied by VBAT
  • Wake-up from low-power modes
12

Memory

ModuleWhat it coversSlidesOn st.com
Flash FLASH

The embedded Flash memory of the STM32G0: organisation, read access, programming and erase. The Flash is read with 64-bit words and an ECC on each word.

Outline
  • Organisation in pages or sectors
  • Wait states and prefetch
  • Programming and erase sequences
  • Option bytes
  • Error flags and interrupts
28

Security

ModuleWhat it coversSlidesOn st.com
AES hardware accelerator AES

The AES hardware accelerator of the STM32G0: encryption and decryption with 128-bit or 256-bit keys.

Outline
  • Key sizes and key registers
  • ECB, CBC and CTR chaining modes
  • GCM and CCM authenticated modes
  • Key derivation for decryption
  • DMA transfers
21
Memory protections MEMPROTECT

The protections of the memories of the STM32G0: how code and data are protected against reading, writing or debug access.

Outline
  • Read-out protection levels
  • Write protection of Flash areas
  • Proprietary code readout protection
  • Securable memory area
  • Effect of the protections on debug and boot
17

Analog

ModuleWhat it coversSlidesOn st.com
Comparators COMP

The analog comparators of the STM32G0: input selection, output routing and use as a wake-up source.

Outline
  • Inputs: pins, internal reference and DAC
  • Hysteresis and speed or power settings
  • Output to pins, timers and EXTI
  • Blanking with a timer
  • Window mode
19
Digital-to-analog converter DAC

The digital-to-analog converter of the STM32G0: output modes, triggers and waveform generation.

Outline
  • Channels and output buffer
  • Data formats and alignment
  • Conversion triggers and DMA
  • Noise and triangle wave generation
  • Sample and hold mode
19
Voltage Reference Buffer VREFBUF

The voltage reference buffer of the STM32G0, which supplies the reference voltage of the ADC and DAC and can output it on a pin.

Outline
  • Selectable reference voltages
  • Enable and high-impedance modes
  • Use with the ADC and DAC
  • Settling time and load
7

Peripherals

ModuleWhat it coversSlidesOn st.com
Serial Peripheral Interface SPI

The serial peripheral interface of the STM32G0: master and slave modes, data frames and the I2S audio mode.

Outline
  • Master, slave and multi-master modes
  • Clock polarity and phase
  • Data size and FIFOs
  • CRC calculation
  • I2S mode for audio
25
USART Interface USART

The USART of the STM32G0: asynchronous and synchronous serial communication and the protocols built on it.

Outline
  • Frame format and baud rate
  • FIFOs and DMA
  • Hardware flow control
  • LIN, IrDA, smartcard and RS-485 modes
  • Wake-up from Stop mode
28
USB Type-C Power Delivery UCPD

The USB Type-C and Power Delivery controller of the STM32G0: cable detection on the CC lines and the Power Delivery messages.

Outline
  • Type-C attach and detach on CC1 and CC2
  • Source, sink and dual-role power
  • Power Delivery message transmit and receive
  • Fast role swap
  • Firmware stack and examples
22

Watchdogs and timers

ModuleWhat it coversSlidesOn st.com
General-Purpose Timer GPTIM

The timers of the STM32G0: counting modes, input capture, output compare and PWM. The series has advanced-control, general-purpose and basic timers.

Outline
  • Counter modes and prescaler
  • Input capture and PWM input
  • Output compare and PWM generation
  • Complementary outputs, dead time and break
  • Timer synchronisation
  • DMA burst
40
Infrared Interface IRTIM

The infrared interface of the STM32G0, which combines two timer outputs to drive an infrared LED for remote controls.

Outline
  • Carrier and envelope signals from two timers
  • Output on a high-drive pin
  • Modulation schemes for IR protocols
4
Real-Time Clock RTC

The real-time clock of the STM32G0: calendar, alarms and wake-up timer, kept running in low-power modes and on VBAT.

Outline
  • Calendar in binary-coded decimal
  • Alarms and periodic wake-up
  • Smooth calibration
  • Timestamp
  • Operation on the backup domain
16

Ecosystem

ModuleWhat it coversSlidesOn st.com
STM32CubeMX Tool

STM32CubeMX applied to the STM32G0: choosing the part, setting pins, clocks and peripherals, and generating the initialisation code.

Outline
  • Part and board selection
  • Pinout and conflict resolution
  • Clock tree configuration
  • Peripheral and middleware settings
  • Code generation for the IDEs
33
STM32G0 boards BOARDS

The ST boards available for the STM32G0, from the Nucleo boards to the evaluation boards.

Outline
  • Nucleo boards and their connectors
  • Discovery and evaluation boards
  • On-board debugger
  • Choosing a board for a project
12

Training on STM32 with MOVE.B

The engineers who wrote these modules teach our STM32 training courses, with labs on STM32 boards. To plan one, write to us.

Next step

Talk to an engineer

A course for your team, a design review or a ChipTrace demo: write to us and an engineer will answer.

Contact us →