Getting started with STM32C5

STM32Cube support for STM32C5 microcontrollers is a complete software solution that combines a high-quality development toolset with comprehensive embedded software.

1. How to install STM32C5 software ecosystem

1.1. STM32CubeMX2

A configuration and code generation tool that accelerates development on STM32C5 microcontrollers. The tool allows users to set pinout, clocks, peripherals, and middleware configurations and generate full projects with production-ready code in a few clicks.

To install STM32CubeMX2, click the picture.

GettingStarted STM32CubeMX2 splashScreen.jpg

STM32CubeMX2

1.2. STM32CubeIDE and STM32CubeIDE for VSCode

Two free integrated development environments accelerate code editing, building, and debugging. For more information and to install the preferred IDE, click the image and visit the STM32CubeIDE page.

1.3. STM32CubeProgrammer(optional)

Free programming tool for hardware option settings, code loading, and code locking on STM32C5 microcontrollers.

To install STM32CubeProgrammer, click the picture.

STM32CubeProg'

STM32CubeProg

1.4. STM32CubeMonitor(optional)

Free and nonintrusive tool for application monitoring.

To install STM32CubeMonitor, click the image.

STM32CubeMonitor'

STM32CubeMonitor

2. How to develop a prototype on STM32C5?

2.1. Select and order the preferred STM32C5 evaluation kit

The board selection is based on STM32 board selector webpage

2.2. Obtain an example project from the STM32 example library

STM32 examples can be found on the STM32 Example Library webpage

2.3. Open the downloaded project in the preferred IDE

Open the project, build it, and load it onto the STM32C5 board.

2.3.1. With STM32CubeIDE
2.3.2. With STM32CubeIDE for VSCode

2.4. Add the application code, build it, and debug it

  • If the project includes an IOC2 file, use the STM32CubeMX2 tool (in parallel with the selected IDE) to add or modify the STM32C5 microcontroller peripherals or middleware configurations and generate associated code. The tool automatically updates the IDE project code with the new configuration.
  • Double-click the IOC2 file to open the STM32CubeMX2 project. Access to the pinout, clock, peripherals, and middleware configurations is then available.
  • Modify existing configurations or add new ones as needed.

3. How to develop end applications on STM32C5?

Different user journeys exist when developing a project for production on STM32C5 microcontrollers. The most common journeys are described below.

Use case/journey Level
Using STM32 native project structure and hardware abstraction layers Beginner
Custom project structure and leveraging STM32 tools and hardware abstraction layers Advance
Using a custom project structure and custom hardware abstraction layer Advance
Porting an existing project to STM32C5 microcontroller Advance