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 and ATOLLIC.

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 software examples 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.


Tutorial and extra link: