STM32Cube embedded software for the STM32C5 series introduces an upgrade of drivers and tools to help you design faster, smaller, and more robust products.
Core software stack
STM32Cube for STM32C5 is built around:
- New software drivers with two levels of hardware abstraction:
- HAL2 (HAL v2.x)
- LL (Low‑Layer) APIs
- RTOS support
- Middleware components
- Utilities
- Part drivers / BSP
This stack lets you:
- Leverage STM32 hardware features and performance with HAL2 to differentiate your product.
- Accelerate development with the new STM32 Example Library, giving quick access to hundreds of examples for your STM32 device.
- Reduce cost by reusing STM32Cube components free of charge under user‑friendly license terms.
HAL2: next‑generation hardware abstraction layer
While keeping the same programming model as STM32 HAL (HAL v1.x) for easy porting, the STM32 HAL2 driver brings the following enhancements:
- Lower footprint
- Improved intuitiveness and usability
- Finer service granularity
- Better integration with RTOS environments
- HAL APIs built on top of LL APIs, enabling faster optimization
- Enhanced quality and maintainability, with:
- Code developed in compliance with MISRA C®:2012 guidelines
- Elimination of possible runtime errors using Synopsys® Coverity® static analysis
- Code coverage validated on STM32 hardware with LDRA® dynamic analysis tools
- Improved reliability of generated code and easier code‑generation updates without requiring a full STM32CubeMX2 update, reducing the amount of re‑validation needed on your side
Middleware offering
The primary middleware stack includes:
- FreeRTOS kernel
- Eclipse USBX (RTOS agnostic)
- Usable in bare-metal and RTOS environments
- Both bare-metal and FreeRTOS examples available
- Eclipse FileX / LevelX (RTOS agnostic)
- Usable in bare-metal and RTOS environments
- Both bare-metal and FreeRTOS examples available
- LwIP TCP/IP stack
- Bare‑metal and FreeRTOS examples available
- STM32 Flexible Crypto Framework (STFCF)
Provides access to multiple cryptographic services with reference implementations for common tasks:
- MbedTLS
- STCryptoLib, a software‑based crypto solution
- Direct use of hardware accelerators via HAL API
- Key Wrap Engine, implemented as a PSA driver to wrap, unwrap, share, and generate keys
- Custom alternatives
- OEM Root of Trust
- An MCUboot‑based secure boot and firmware update solution
BSP and part drivers
The BSP layer has been reworked into a new architecture of part drivers, making it easier to reuse software on customer boards and custom hardware.
STM32Cube software examples and structure
The STM32Cube Software Example structure has been redesigned for:
- Better readability and reuse
- Higher abstraction across STM32 boards and IDEs
Key characteristics:
- Step‑by‑step sequences documented in a comprehensive README for each example
- STM32 hardware configurations accessible via STM32CubeMX2
- Example projects available for:
- IAR Embedded Workbench® for Arm®
- CMake (for STM32CubeIDE for VS Code)
- Open CMSIS Pack csolution (for Arm® Keil® Studio or MDK µVision)
- All examples are easily accessible through the STM32 Example Library
Documentation and SBOM
- A new HTML documentation set for STM32C5 embedded software is published online (browsable or downloadable). It:
- Clearly associates documentation versions with software versions
- Includes HAL/LL API references
- Documents STM32Cube Software Examples
- Provides migration guidelines for projects developed on HAL v1.x
- Automated, machine‑readable SBOMs are available in CycloneDX format.
STM32 Package Creator and distribution model
- A new STM32 Package Creator (available on st.com) lets you:
- Build and download a custom STM32Cube Software Package based on HAL2
- Select only the software features needed for your project
- Software components are:
- Designed with greater modularity
- Hosted in dedicated GitHub repositories for easy tracking of updates, bug fixes, and improvements
- Open to pull requests and issues, enabling user contributions and direct feedback
- Configurable software components are also provided as STM32Cube Packs within the STM32CubeMX2 configuration tool.
Migration support from HAL v1.x
For developers with existing projects:
- Detailed migration guidelines are provided.
- A migration script (available as an executable and as a Python script) helps port projects built on HAL v1.x to the new HAL2‑based STM32Cube ecosystem.
Known limitations
- HAL/LL examples coverage
Some STM32Cube Software Examples for HAL and LL may be missing for specific use cases.
- Middleware examples coverage
Only a limited number of examples are available for FileX, LevelX, USBX, and LwIP, and some use cases may not yet be covered.
- Missing .ioc2 files
Certain examples do not include an .ioc2 file, so their configuration cannot be opened in the STM32CubeMX2 tool.
- Open Bootloader middleware
The Open Bootloader middleware is currently not available.
- Arm Keil uVision template
A template for Arm Keil µVision is not yet present in the STM32 Example Library.
As a workaround, you can obtain it from the STM32Cube MCU package for STM32C5.
- Software package extraction on Windows
Extracting the software package using Windows “Extract all” can be very slow and may lead to errors.
It is recommended to use 7‑Zip instead.
- HTML documentation download
There is no direct way to download the HTML online documentation.
As a workaround, tools such as HTTrack can be used to mirror the site for offline access and browsing.
- Printing from HTML documentation
The “Print page” function of the HTML documentation does not generate a PDF in a company‑standard format.
- CMake availability for middleware examples
Some middleware STM32Cube Software Examples are not yet available in CMake format for use with STM32Cube for VS Code.
All these limitations are planned to be addressed in a future release targeted for early Q3 2026.
Additional resources
First published on Mar 16, 2026