STM32Cube  Version 2.0
Create Projects for STM32L0 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 located in the class Device component bundle STM32CubeMX:

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

Important note: When selecting the component bundle 'Standalone' instead of 'STM32CubeMX' the STM32Cube HAL and LL peripheral interfaces become selectable as individual software components, but there is no component STM32Cube Framework:STM32CubeMX. This means there is no interaction nor integration available with the STM32CubeMX utility. As the CMSIS-Drivers for the STM32 peripherals rely on the peripheral and pin configuration by the STM32CubeMX and source code generated accordingly, CMSIS-Drivers and also MDK-Middleware components cannot be used when the 'Standalone' bundle is selected.

MDK Software Packs for STM32L0/F0,STM32F2,STM32F3,STM32F4 and STM32F7/H7 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.

STM32Cube_Overview.png

It is recommended to watch the video tutorials available from ST and ARM on STM32CubeMX:

STM32CubeMX Tutorial by STMicroelectronics

Using STM32CubeMX with Keil MDK by Arm

Refer to MDK Version 5 - CMSIS and the CMSIS Workshop for an introduction to CMSIS.

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