How to use the STM32CubeMX Framework (API)
uVision5 provides two routes for users to configure their RTE. The first option, called Classic (used for all the recipes in Chapters 2-8), configures the STM's Hardware Abstraction Layer (HAL) using the RTE_Device.h
header file. This option allows users to quickly configure the RTE for most CMSIS-enabled devices. The second option uses STM's graphical configuration tool, STM32Cube MX, to perform low-level configuration of the HAL directly. Example projects using both approaches are shipped with recent versions of Device Family Packs (for example, DFP 2.6.0). This recipe (named ARM_STM32CubeMX_Blinky_c9v0
) shows you how to build a Blinky project using STM's tool.
How to do it…
Create a new project named
STM32CubeMX_Blinky
. Choose the STM32F407IGHx device.Configure the RTE for the MCBSTM32F400 board. Check the Board Support → LED (API) and Device → STM32Cube Framework (API) → STM32CubeMX options. Then, select Resolve and OK.
If you haven't installed...