STM32L4Plus Introduction Delta STM32L4 Series
STM32L4Plus Introduction Delta STM32L4 Series
STM32L4Plus Introduction Delta STM32L4 Series
Revision 2.0
1
STM32L4Rxxx/Sxxx and
2
STM32L4P5xx/Q5xx Block Diagram
• Up to 120MHz, 406 CoreMark
Parallel Interface Connectivity
FSMC 8-/16-bit Cortex-M4
• Up to 2MB Flash / 640KB SRAM for (TFT-LCD, SRAM, NOR, 120 MHz USB OTG, 1x CAN,
2x SD/SDIO/MMC(2), 3x SPI,
STM32L4Rxxx/Sxxx devices NAND) FPU 4x I²C, 2xOctoSPI,
MPU 5x USART + 1x ULP UART
Display ETM
• Up to 1MB Flash / 320KB SRAM for MIPI-DSI(1) 2 Lanes 500Mps 2xDMA
STM32L4P5xx/Q5xx devices LCD-TFT Controller
ART Digital
Accelerator™ AES (256-bit), SHA 256,
Timers
• MIPI-DSI 2 Lanes 17 timers including: Up to PKA (3),TRNG, 2x SAI,
2-Mbyte Flash DFSDM (8 channels)
2 x 16-bit advanced motor
control timers with ECC
• LCD-TFT controller 2 x ULP timers Dual Bank
7 x 16-bit-timers Analog
Chrom-ART ™
2 x 32-bit timers
• Chrom-ART I/Os
Chrom-GRC ™(1) 2x 12-bit ADC(4), 2x DAC,
2x comparators, 2x op amps
Up to 114 I/Os 1x temperature sensor
Up to 640-Kbyte
• Chrom-GRC Touch-sensing controller RAM
Camera Interface
• 2xOctoSPI (1)
(2)
MIPI-DSI and Chrom-GRC are available only on STM32L4Rxxx/Sxxx devices
2x SDMMC for STM32L4P5xx/Q5xx devices and 1x SDMMC for STM32L4Rxxx/Sxxx devices
(3) PKA only for STM32L4P5xx/Q5xx devices
(4) 2x ADC for STM32L4P5xx/Q5xx devices and 1x ADC for STM32L4Rxxx/Sxxx devices
2
advanced graphic operations.
2
STM32L4+ & STM32L4 Series Pin Compatibility 3
STM32L4P5xx/Q5xx STM32L4R5xx/S5xx/R7
STM32L4P5xx/Q5xx STM32L4P5xx/Q5xx STM32L4R9xx/S9xx
vs. xx/S7xx
Package STM32L4R5xx/S5xx/R
vs. vs.
vs.
vs.
STM32L4R9xx/S9xx STM32L4 Series STM32L4 Series
7xx/S7xx STM32L4 Series
LQFP48
- - compatible - -
UFQFPN48
LQFP64 - - compatible - -
WLCSP100 - - compatible - -
WLCSP144 - - - - -
UFBGA144 - - - - incompatible
For more details about pin to pin compatibility refer to AN5017 “Migrating between STM32L476xx/486xx and STM32L4+ Series microcontrollers”
3
STM32L4+ & STM32L4 Series 4
Pin Compatibility
• Pin difference notification for board design with STM32L4S9xx/4R9xx
Pin 19 to pin 98
LQFP100 UFBGA169 Ball-out not compatible
are not compatible
4
System Architecture
5
STM32L4+ System Architecture 6
GFXMMU(1)
Cortex-M4 DMA1 DMA2 DMA2D LCD-TFT SDMMC1
SDMMC2(2)
D-Bus
S-Bus
I-Bus
ICode
ACCEL
FLASH
DCode up to 2 MB
SRAM1
SRAM2
SRAM3
GFXMMU(1)
AHB1
Peripheral
AHB2
Peripheral
FMC
OCTOPI1
OCTOPI2
BusMatrix-S
(1) GFXMMU is only available on STM32L4P5xx/4Q5xx devices
(2) SDMMC2 is only available on STM32L4Rxxx/4Sxxx devices
7
Clock Scheme - New Features 8
8
Clock Scheme New Features 9
STM32L476xx/486xx STM32L4+
PLLM divider PLLM:1 to 8 PLLM: 1 to 16
PLLN factor PLLN:8 to 86 PLLN: 8 to 127
PLLP divider PLLP: 7 or 17 PLLP: 2 to 31
PLLSAI1M divider NA PLLSAI1M: 1 to 16
PLLSAI1N factor PLLSAI1N: 8 to 86 PLLSAI1N: 8 to 127
PLLSAI1P divider PLLSAI1P: 7 or 17 PLLPSAI1P: 2 to 31
PLLSAI2M divider NA PLLSAI2M: 1 to 16
PLLSAI2N factor PLLSAI2N: 8 to 86 PLLSAI2N: 8 to 127
PLLSAI2P divider PLLSAI2P: 7 or 17 PLLSAI2P: 2 to 31
PLLSAI2Q divider NA PLLSAI2Q: 2, 4, 6 or 8
HSI16 HSITRIM[4:0] HSITRIM[6:0]
HSI48 NA RC with clock recovery used for
USB/RNG/SDMMC
9
System Clock Selection 10
• Switching from Low to High speed or from High to Low speed system
clock, it is recommended to use a transition state with a medium speed
clock for at least 1us.
• Transition state:
• Set the AHB prescaler HPRE[3:0] bits to divide System frequency by 2
• Switch system clock to PLL
• Reconfigure AHB prescaler bits to needed HCLK frequency
10
Memory Mapping and NVIC
11
Embedded SRAM Memory Mapping 12
12
External Memory Mapping 13
13
NVIC Interrupt Vectors 14
71 OCTOSPI1 QUADSPI
76 OCTOSPI2 SWPMI
83 I2C4_EV Reserved
84 I2C4_ER Reserved
90 DMA2D Reserved
91 LCD-TFT Reserved
92 LCD-TFT_ER Reserved
94 DMAMUX1_OVR Reserved
14
Embedded FLASH
15
STM32L4+ Flash Memory 16
• Protections:
• Single Bank: 4 WPR areas, 2 PCROP areas
• Dual Bank: 2 WPR areas per bank, 1 PCROP area per bank
16
Flash Memory Organization 17
Size
Flash area Flash memory addresses Page# Flash memory addresses Size (bytes) Page#
(bytes)
0x0800 0000 – 0x0800 0FFF 4K Page 0 0x0800 0000 – 0x0800 1FFF 8K Page 0
0x0800 1000 – 0x0800 1FFF 4K Page 1 0x0800 2000 – 0x0800 3FFF 8K Page 1
Bank 1
Main memory
- - - -
Single Bank
0x080F F000 – 0x080F FFFF 4K Page 255
17
Option Bytes New Features 18
STM32L4+ STM32L476xx/486xx
nBOOT0 NA
nSWBOOT0 NA
PCROP1_STRT[16:0] PCROP1_STRT[15:0]
PCROP2_STRT[16:0] PCROP2_STRT[15:0]
PCROP1_END[16:0] PCROP1_END[15:0]
PCROP2_END[16:0] PCROP2_END[15:0]
18
Flash Memory Wait States 19
STM32L4+ Series
Max frequency (MHz)
CPU Power Typical value
VCORE range
performance performance (V)
0WS 1WS 2WS 3WS 4WS 5WS
STM32L476xx/486xx
Max frequency (MHz)
Typical value
CPU performance Power performance VCORE range
(V)
0WS 1WS 2WS 3WS 4WS 5WS
High Low Range1 1.2 16 32 48 64 80 -
19
Power Controller (PWR)
20
Power Supply 21
VDDIO2 domain
• It must be connected to VDD VDDIO2
I/O ring
VDDIO2
• VCAPDSI the DSI regulator (1.2V) output VSS PG[15:2]
VDDDSI DSI
• It must be connected to VDD12DSI. VCAPDSI Voltage regulator
DSI PHY
• VDD12DSI used to supply the MIPI D-PHY, clock and VDD12DSI
VDD domain
data lanes VDDIO1 I/O ring
Reset block
• A 2.2 µF must be connected to VDD12DSI Temp. sensor
3 x PLL, HIS, MSI VCORE domain
VSS
• VSSDSI is an isolated ground supply used for DSI sub- VDD
Standby circuitry
(Wakeup logic, IWDG)
Core
SRAMs
system Voltage regulator VCORE Digital
peripherals
21
Main Regulator: Voltage Scaling Range 22
SYSCLK
(max frequency)
• Range 1 :
• Boost mode: 1.28V
80 MHz
• Normal mode: 1.2V (default after reset)
Range 1
• Range 2: 1.0V Range 1 boost mode
normal 1.28V
26 MHz
mode
• Power consumption optimization up Range 2 1.2V
to 10% in range1 normal mode vs 1.0V
22
Low Power Modes 23
STM32L4+ STM32L476/486xx
STOP0
STOP1
STOP2 SRAM3 OFF
Low Power STOP2
STOP2 SRAM3 ON
Modes
Standby SRAM2 (64 Kbytes) OFF(1) Standby
Standby SRAM2 (64 Kbytes) ON(1)
Shutdown
(1) On STM32L4P5xx/4Q5xx devices SRAM2 can be fully (64 Kbytes) or partially (4 Kbytes) retained in Standby
23
ULP Bench Score Differences 24
24
Communication & Peripherals
25
STM32L476/486 Versus STM32L4+ Series 26
Backup-registers 32 x32-bit
8-,16-bit NOR, PSRAM, SRAM , FRAM and NAND memories
• New data hold timing 8-,16-bit NOR, PSRAM, SRAM and NAND
External Memory FSMC
• New NBL setup timing memories
• Clock divider =1
2x OctoSPI: Octal flash + Octal
External Memory
2x OctoSPI: Octal flash memories PSRAM + HyperRAM memories 1x QuadSPI in single Flash mode
QuadSPI/OctoSPI
Multiplexed mode
26
STM32L476/486 Versus STM32L4+ Series 27
27
STM32L476/486 Versus STM32L4+ Series 28
4 x I2C 3 x I2C
- PSSI
5x U(S)ART + 1x LPUART
5x U(S)ART + 1x LPUART
(FIFO, SPI slave transmission)
1xCAN 2xCAN
DMAMUX -
AES -
- PKA -
HASH -
- LCD
- SWPMI
28
STM32L476/486 Versus STM32L4+ Series 29
LCD-TFT -
29
Ecosystem
30
STM32L4Plus Ecosystem 31
STM32CubeMX
• Initialization Code generation based on user choices
STM32CubeL0
STM32CubeF4
STM32CubeL1 STM32CubeF2
STM32CubeL4
STM32CubeF3
STM32CubeF0 STM32CubeF1
STM32Cube HAL: Portable API within all series - Middleware stacks when applicable:
RTOS, USB, TCP/IP, Graphics, …
31
References 32
32