Skip to main content

STM32 Hardware Selection for EU CRA‑Compliant Connected Products

The EU Cyber Resilience Act (CRA) imposes significant security-by-design requirements on manufacturers. For microcontroller-based products, this means selecting a device with a hardware root-of-trust, robust cryptographic capabilities, and a secure lifecycle management path.

STMicroelectronics' STM32 portfolio offers a broad range of MCUs that provide the hardware foundations for CRA compliance. Leveraging the STM32Trust security framework and the extensive STM32Cube ecosystem, developers can build products that meet the CRA's essential requirements.

1. STM32 Family Cheat-Sheet

The STM32 family is vast, but can be broadly categorized by performance, power, and features. For CRA compliance, the series with advanced security peripherals are of most interest.

  • STM32U5/L5 (Ultra-Low-Power): Based on the Arm® Cortex®-M33 core, these series feature TrustZone® for hardware-level isolation, plus ST's most advanced security feature set. They are the go-to choice for new, secure-by-design IoT products.
  • STM32H7/H5 (High-Performance): These Cortex®-M7/M33 MCUs offer maximum processing power combined with a strong set of security features, including crypto accelerators and secure key storage.
  • STM32WL (Wireless): The world's first LoRaWAN-enabled SoC, this Cortex®-M4/M0+ series includes security features tailored for long-range wireless applications, such as a secure key management service.
  • STM32G4/G0 (Mainstream): Cost-effective MCUs that still include a solid baseline of security features like a hardware crypto engine and a unique device ID, suitable for less critical applications.

ST's Secure Firmware Update (SFU) and Secure Boot (SBSFU) reference implementations are key enablers for building a compliant update mechanism.

Table 1 – STM32 Series vs. Security & Key Features

SeriesCPU CoreKey HW Security FeaturesStand-out CapabilityTypical Fit
STM32U5Cortex-M33 @ 160MHzTrustZone®, HUK, AES, PKA, OTFDEC, Tamper, Secure Boot, RDP, Unique IDBest-in-class ultra-low power with full securityPower-constrained, high-security IoT Endpoints
STM32L5Cortex-M33 @ 110MHzTrustZone®, AES, PKA, OTFDEC, Tamper, Secure Boot, RDP, Unique IDFirst STM32 with TrustZone®Secure, general-purpose low-power applications
STM32H7Cortex-M7 @ up to 550MHzCrypto/Hash (some), Secure Boot, Unique ID, optional on-the-fly decryptionHighest MCU performance, advanced peripheralsIndustrial gateways, rich HMI, complex processing
STM32WLCortex-M4 + M0+AES, PKA, True RNG, Sector Protection, Secure Key Management, Unique IDIntegrated Sub-GHz Radio (LoRa, Sigfox, etc.)Secure, long-range wireless sensors
STM32G4Cortex-M4 @ 170MHzAES, True RNG, Unique ID, Memory Protection Unit (MPU)Cost-effective with rich analog peripheralsMotor control, industrial control

2. Quick-Pick Decision Matrix

If your product needs…ChooseRationale
State-of-the-art security and ultra-low powerSTM32U5Arm TrustZone® isolation plus the most complete set of on-chip security IPs from ST.
Integrated LoRaWAN or other Sub-GHz connectivitySTM32WLThe dual-core architecture allows the radio stack to run isolated from the application.
Maximum computational performance for edge AI/HMISTM32H7The fastest Cortex-M7 core, often paired with large internal memory and advanced graphics.
A balance of low-power, cost, and TrustZone securitySTM32L5A solid entry point into hardware-isolated designs without the premium features of the U5.
Cost-sensitive application with baseline cryptoSTM32G4Provides hardware AES and a unique ID, covering basic cryptographic needs.

3. CRA Compliance Checklist for STM32 Designs

CRA expectationHow to meet it with STM32
Secure boot & authenticated firmwareImplement ST's Secure Boot and Secure Firmware Update (SBSFU) reference design. Use it to verify code integrity and authenticity at every startup. st-sbsfu-an
Cryptographic resilienceUtilize on-chip hardware accelerators for AES, PKA (public key), and HASH. Use On-The-Fly-Decryption (OTFDEC) to execute code from encrypted external flash. st-trust
Vulnerability patching for 10 yearsUse the SFU mechanism to deliver secure OTA updates. Base firmware on the mature STM32Cube HAL/LL, and monitor ST's security advisories.
Unique device identityUse the factory-programmed 96-bit Unique Device ID (UID) as a basis for device-specific identity and key derivation.
CE marking & documentationLeverage ST's extensive application notes and technical documentation on security to build your technical file and justify design choices for the Declaration of Conformity.

4. Take-aways

  • For new secure designs, start with the STM32U5 or STM32L5 series to leverage Arm TrustZone®.
  • ST's STM32Trust framework provides a roadmap and reference implementations for security.
  • The SBSFU reference design is a critical asset for building a compliant secure boot and update mechanism.
  • Always use the hardware crypto peripherals instead of software libraries for performance and protection.