How to get STM32Cube Software Examples ?

The STM32Cube Software Examples are distributed as part of the STM32Cube Software Package [ 1 ] . You can retrieve all or part of the STM32Cube Software Examples through different distribution channels.

STMicroelectronics GitHub

The STM32Cube Software Examples are available in the STMicroelectronics GitHub organization. You can clone an entire STM32Cube MCU Package repository for a given STM32 series, and the example projects are copied on your local disk. This is the more direct way to retrieve a complete software package with all examples for an STM32 series.

Folder structures

Depending on the delivery channel used, the project folder structure varies:

  • Multi-project folder structure :

    • Provides several examples, each organized in its own independent sub-folder.

    • Each sub-folder contains multiple example projects (typically one per supported board).

    • All libraries, including Device Family Packs (DFP), Hardware Abstraction Layer (HAL), middleware, part drivers, and utilities, are shared among all example projects.

    • This structure represents the global folder organization of a STM32Cube Software Package.

  • In-project folder structure :

    • Contains a single example project, typically for one board and one IDE.

    • All dependencies (DFP, HAL, middleware, part drivers, utilities) are grouped together under the same top-level folder as the example project.