Skip to content

Latest commit

 

History

History

CubeMX

CubeMX project

This project shows the usage of CubeMX. Refer to the documentation chapter CMSIS-Toolbox > Configure STM32 Devices with CubeMX for details.

Prerequisites

Tools

Note: later versions will also compile with GCC.

Packs

DFP and BSP development packs are available here github.com/Open-CMSIS-Pack/pack-examples. Clone the repo to <working-dir> and install the packs by executing:

> cpackget add <working-dir>\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc
> cpackget add <working-dir>\pack-examples\B-U585I-IOT02A_BSP\Keil.B-U585I-IOT02A_BSP.pdsc 

Run CubeMX

This command starts STM32CubeMX using the specified context.

> csolution CubeMX.csolution.yml run --generator CubeMX --context CubeMX.Debug+MyBoard

For using CubeMX refer to the documentation chapter CMSIS-Toolbox > Configure STM32 Devices with CubeMX.

Generated Project

> cbuild CubeMX.csolution.yml --packs --update-rte

Note: During the build process required packs may be downloaded.

Execute Project

You may use the debugger of choice for executing this program.