How to port an example

All the STM32Cube Software Examples are designed to be portable across different STM32 series and toolchains.

By default, each example is available for all STM32 development boards offering the required resources. The need to port the code to another board is rare, but it can happen. It is required when you want to run the example on a custom board of yours.

This section explains how to port the example code to another STM32 series or toolchain. Two main points are covered: