STM32L562 — STM32L562E-DK

Board Overview

The STM32L562E-DK Discovery board extends L552 capabilities with hardware AES and an on-board Octa-SPI flash. This enables transparent on-the-fly decryption of enclaves via OTFDEC.

Key Characteristics

FeatureDetail
MCUSTM32L562QEI6Q
CoreCortex-M33, 110 MHz
Flash512 KB (2 x 256 KB banks)
SRAM256 KB
AESHardware AES engine at 0x520C0000 (AesHardware)
External FlashMX25LM51245G 64 MB Octa-SPI (memory-mapped at 0x90000000)
OTFDECOn-The-Fly Decryption engine, 4 configurable regions
Debug UARTUSART1 (PA9 TX, PA10 RX) via ST-Link VCP, 9600 baud
LEDPD3 (red)
Enclave storageExternal OCTOSPI flash
Block loadingCPU copy from memory-mapped OCTOSPI (OTFDEC decrypts transparently)

OTFDEC Operation

On the L562, enclave blocks are stored encrypted in external flash. The boot sequence:

  1. Loads plaintext enclave blob to OCTOSPI via external loader
  2. Uses OTFDEC in ENC mode to encrypt and write back to flash
  3. Switches OTFDEC to DEC mode for runtime
  4. Memory-mapped reads from 0x90000000 return decrypted data transparently

This means the CPU never sees ciphertext during normal operation — OTFDEC is a bus-level transform.

OCTOSPI Pin Assignment

PinFunctionAlternate Function
PA2NCSAF10
PA3CLKAF10
PA6IO3AF10
PA7IO2AF10
PB0IO1AF10
PB1IO0AF10
PB2DQSAF10
PC0IO4AF10
PC1IO5AF10
PC2IO6AF10
PC3IO7AF10