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:

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.


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.


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).


The image below shows the functionality of CUBE-MX.


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: