Middleware level
Utilities
Application level demonstrations
HAL and LL APIs
User
application
Evaluation
boards
Discovery
boards
STM32 Nucleo
boards
Dedicated
boards
USB Device
FAT file
system
RTOS
Hardware abstraction layer APIs (HAL)Board Support Package (BSP) Low-layer APIs (LL)
Utilities
CMSIS
USB Power
Delivery
Product status link
STM32CubeG4
Features
Consistent and complete embedded software that provides hardware abstraction to easily develop end-user firmware
Maximized portability between all STM32 series supported by STM32Cube
More than 300 examples and applications for easy understanding, all compatible with STM32CubeMX to facilitate the
configuration through a graphical tool.
High quality HAL and low-layer API drivers using CodeSonar
®
static analysis tool
STM32G4 dedicated middleware including USB Device, USB Power Delivery, FAT file system and RTOS
Free user-friendly license terms
Update mechanism with new-release notification capability
STM32Cube embedded software for STM32G4 Series including HAL, low-layer
drivers and dedicated middleware
STM32CubeG4
Data brief
DB3759 - Rev 1 - March 2019
For further information contact your local STMicroelectronics sales office.
www.st.com
1 Description
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 STM32CubeG4 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 and FAT file
system). All embedded software utilities are delivered with a full set of examples running on STMicroelectronics
boards.
The STM32CubeG4 embeds specific APIs (such as HRTIMER, a rich set of analog APIs, FMAC and CORDIC
mathematical accelerators), that make it particularly tailored for motor control and switched-mode power supply
applications.
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 HAL and LL drivers are production-ready and have been developed in compliance with V-Model
requirements for design, implementation and tests. Furthermore, STMicroelectronics specific validation process
adds a deeper qualification level, such as compliance with MISRA-C
®
:2012 guidelines and elimination of possible
runtime errors thanks to a static analysis tool. Reports are available on demand.
The STM32CubeG4 gathers in one single package all the generic embedded software components required to
develop an application on STM32G4 microcontrollers. Following STM32Cube initiative, this set of components is
highly portable, not only within the STM32G4 Series but also to other STM32 Series. In addition, the low-layer
APIs provide an alternative, high-performance, low-footprint solution to the STM32CubeG4 HAL at the cost of
portability and simplicity.
HAL and LL APIs are available in open-source BSD license for user convenience.
STM32CubeG4
Description
DB3759 - Rev 1
page 2/6