Getting started with STM32C5/Journey 1

Using STM32 native project structure and hardware abstraction layers

1.Use STM32CubeMX2 tool to set the STM32C5 configuration and generate the initial IDE project.

  • Create a new project by selecting MCU as the target, then choose the STM32C5 part number and create the STM32CubeMX2 project.
  • Set the pinout, clock, peripherals, and middleware configuration as required.
  • In project settings, select the target IDE project format.
    • STM32C5 is supported by two free IDE options: STM32CubeIDE and STM32CubeIDE for VS Code. Visit the STM32CubeIDE webpage page to get more details and get the preferred option.
    • In project settings, choose CMake for STM32CubeIDE or STM32CubeIDE for VS Code, Open-CMSIS for Keil Studio IDE, and IAR for IAR IDE project formats.
  • When the STM32C5 configuration and project settings are complete, generate the IDE project.

2.Open the project in the IDE

  • Build the project and load it onto the STM32C5 board.

3.Add application code, build, load, and debug

  • Refer to STM32CubeIDE and STM32CubeIDE for VS Code documentation webpage.
  • Access hundreds of production-ready STM32C5 example projects in the STM32 example library at this link: <link to the example library with STM32C5 pre-selected>
  • Obtain additional software components for STM32Cube expansions from ST GitHub or web page.

4.If required, Update the STM32C5 configuration in STM32CubeMX2

  • Change peripherals initialization as needed
  • Enable and add new peripherals or middleware to the STM32CubeMX2 project
  • Regenerate code with STM32CubeMX2. The generated code is kept in separate files in the IDE project to avoid overwriting application code