STM32Cube MCU Package for STM32F4 series (HAL, Low-Layer APIs and CMSIS (CORE, DSP, RTOS), USB, TCP/IP, File system, RTOS, Graphic - coming with examples running on ST boards: STM32 Nucleo, Discovery kits and Evaluation boards)

STM32Cube™ is an STMicroelectronics original initiative to make developers' lives easier by reducing development effort, time and cost. STM32Cube™ covers the whole STM32 portfolio.

STM32Cube™ includes STM32CubeMX, a graphical software configuration tool that allows the generation of C initialization code using graphical wizards.

It also comprises the STM32CubeF4 MCU Package composed of the STM32Cube™ hardware abstraction layer (HAL) and the low-layer (LL) APIs, plus a consistent set of middleware components (RTOS, USB, FAT file system, Graphics and TCP/IP). TouchGFX graphic software stack is also included in the STM32CubeF4 MCU Package as a part of the STM32Cube™ ecosystem. It is available free of charge for production and redistribution on STM32 microcontrollers.

All embedded software utilities are delivered with a full set of examples running on STMicroelectronics boards.

The STM32Cube™ HAL is an STM32 embedded software layer that ensures maximized portability across the STM32 portfolio, while the LL APIs make up a fast, light-weight, expert-oriented layer which is closer to the hardware than the HAL. HAL and LL APIs can be used simultaneously with a few restrictions.

Both the HAL and LL APIs are production-ready and have been developed in compliance with MISRA-C®:2004 guidelines with some documented exceptions (reports available on demand) and ISO/TS 16949. Furthermore, ST-specific validation processes add a deeper-level qualification.

The STM32CubeF4 gathers in one single package all the generic embedded software components required to develop an application on STM32F4 microcontrollers. Following STM32Cube™ initiative, this set of components is highly portable, not only within the STM32F4 Series but also to other STM32 Series. In addition, the low-layer APIs provide an alternative, high-performance, low-footprint solution to the STM32CubeF4 HAL at the cost of portability and simplicity.

HAL and LL APIs are available in open-source BSD license for user convenience.

Key Features

  • Consistent and complete embedded software offer that frees the user from dependency issues
  • Maximized portability between all STM32 Series supported by STM32Cube
  • Hundreds of examples for easy understanding
  • High quality HAL and low-layer API drivers using CodeSonar™ static analysis tool
  • TouchGFX graphics software stack
  • STM32F4-dedicated middleware including USB Host and Device, and TCP/IP
  • Free user-friendly license terms
  • Update mechanism that can be enabled by the user to be notified of new releases




Technical Documentation

Product Specifications
Description Version Size
DB2164 DB2164: STM32Cube MCU Package for STM32F4 Series with HAL, low-layer drivers and dedicated middleware 6.0 136 KB
Application Notes
Description Version Size
AN4323 AN4323: Getting started with STemWin Library 5.0 1 MB
AN4739 AN4739: STM32Cube firmware examples for STM32F4 Series 4.0 496 KB
User Manuals
Description Version Size
UM1725 UM1725: Description of STM32F4 HAL and LL drivers 5.0 34 MB
UM1722 UM1722: Developing Applications on STM32Cube with RTOS 2.5 710 KB
UM1713 UM1713: Developing applications on STM32Cube with LwIP TCP/IP stack 4.1 940 KB
UM1721 UM1721: Developing applications on STM32Cube™ with FatFs 3.0 649 KB
UM1730 UM1730: Getting started with STM32CubeF4 MCU Package for STM32F4 Series 14.0 570 KB
UM1709 UM1709: STM32Cube Ethernet IAP example 3.1 775 KB
UM2372 UM2372: STM32Cube PDM2PCM software library for the STM32F4/F7/H7 Series 1.0 421 KB
UM1723 UM1723: STM32Cube PolarSSL example 2.1 643 KB
UM1720 UM1720: STM32Cube USB host library 3.1 606 KB
UM1743 UM1743: STM32CubeF4 demonstration platform 5.0 6 MB
UM1734 UM1734: STM32Cube™ USB device library 4.0 1 MB

Presentations & Training Material

Description Version Size
STM32 Embedded Software overview 2.5 342 KB
STM32 and STM8 embedded software solutions 7.0 3 MB

Publications and Collaterals

Description Version Size
STM32Cube eases STM32 development 18.12 1 MB
STM32F401/10/11/12/13 - High-performance Access lines 18.05 1 MB
Description Version Size
STM32 32-bit MCU family - Leading supplier of Arm® Cortex®-M microcontrollers 18.02 2 MB


License Agreement
Description Version Size
SLA0048 SLA0048: Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT 5.1 87 KB

Tools and Software

Development Tools
Software Development Tools
Embedded Software
MCU & MPU Embedded Software
ST25 - NFC / RFID Software
Support and Applications

Get Software

Part Number General Description Software Version Supplier Marketing Status GitHub link Download
STM32CubeF4 - 1.23.0 ST Active -


Support & Community