CUBE or CUBE-MX

If you like it, share it

STM32 CUBE or more precisely CUBE-MX is a graphical tool that allows configuring the STM32 microcontrollers very easily and generate a complete C project for:
IAR, KEIL, AC6, ATOLLIC, etc.

This platform includes the STM32 Cube Library, ensuring easy portability across STM32 portfolio, plus a consistent set of middleware components (RTOS, USB, FS, TCP/IP,  Graphics, etc).
All embedded library come with a full set of examples.

With STM32 Cube, STMicroelectronics provides a comprehensive software tool, significantly reducing development efforts, time and cost.

cube_immage

The STM32 libraries are called HAL and by the end of 2016 will also be accompanied by the LL libraries.
LL libraries write directly into the MCU registers and are therefore more efficient and compact.
The HAL libraries are more high-level libraries that allow easy SW migration between the various available STM32 but are less efficient than the LL libraries and occupy more code.
The differences between the two libraries are graphically highlighted below.

hal-ll

The previous libraries were called Standard Peripheral Library and there are also the Snippets Libraries.
In any case the libraries to use today are the HAL or LL (red box below).

librarycompar

The image below shows the functionality of CUBE-MX.

cubehowto

For more info see this tutorial that explain step-by-step the creation of a new project for STM32L4.
The concept are valid for all the STM32 families.

A new video that explain how to use the new Cube-MX ver.5.x is here.


Tutorial and extra link:

  • Contents

    STM32 Clock + CUBESTM32F4-Discovery + CUBE for configuration the Clock, the MCO2 and blinking LED
  • Video tutorial that explain into details the use of CUBE (by Gidi Mizrahi)
  • UM1718 (STM32CubeMX for STM32 configuration and initialization C code generation)

  • ANxxx (see below) are draft version, this manual is only for AVNET-SILICA customers.
    For this reason is protected by password.
    Silica Italian customers, please contact me
    and ask me the ANxxx and specifay: name, surname, city and your contact in SILICA
    AVNET-Silica European customers, please contact local AVNET-SILICA FAE.
    Other countries, please contact directly STM.
    ANxxxxHow to migrate an application from StdLib to STM32Cube