STM32Cube  Version 2.0
Create Projects for STM32F3 Series with STM32Cube HAL and STM32CubeMX
 All Files Pages
Introduction

This manual explains how to create projects that utilize STM32Cube together with Keil MDK Version 5, which provides Device Family Packs (DFP) for the STM32 device series. The DFPs for STM32 Devices Version 2 (or higher) include STM32Cube and a full set of CMSIS-Driver that provide standardized peripheral interfaces.

STM32Cube provides two components:

  • STM32Cube HAL: a software abstraction layer for STM32 peripherals.
  • STM32CubeMX: a graphical software configuration tool that generates the initialization code for STM32 peripherals.

MDK Software Packs for STM32L, STM32F and STM32H device series extend the support for STM32Cube with:

  • CMSIS-Driver: extend the STM32Cube HAL with standardized drivers for middleware and generic component interfaces.
  • Middleware Examples: that demonstrate the features of the MDK Professional Middleware.

The diagram below is an overview of the complete software stack that is available with Keil MDK Version 5. There are two options to configure the Run-Time Environment.

STM32Cube_Overview.png

Note: Option 1 is not supplied for all device families. RTE_Device.h will be phased out for STM32 families supported by CubeMX.

Refer to MDK Version 5 - CMSIS and the CMSIS Workshop for additional information.

This manual contains the following chapters:

  • classic explains how to setup the STM32Cube HAL using header files.
  • Configuration via STM32CubeMX explains how to setup the STM32Cube HAL using a graphical configuration tool.
  • STM32F3 Device Family Pack describes implementation details and configuration for evaluation boards such as ST Discovery Kits.
  • Troubleshooting explains how to solve issues that may occur when using STM32Cube.

This manual assumes that you are familiar with MDK. Refer to MDK Version 5 - Getting Started for additional information.