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

Get Software Download databrief
Overview
Tools & Software
Resources
Solutions
Quality & Reliability
Sales Briefcase
eDesignSuite
Get Started
Sample & Buy
Partner products
  • 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.

    Key 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 MISRA-C® 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

Get Software

Recommended for you

Evaluation Tools

    • Part Number

      STM32 Nucleo-64 development board with STM32G431RB MCU, supports Arduino and ST morpho connectivity

      STM32 Nucleo-64 development board with STM32G474RE MCU, supports Arduino and ST morpho connectivity

      Motor Control Nucleo Pack with NUCLEO-G431RB and X-NUCLEO-IHM16M1

      Evaluation board with STM32G474QE MCU

      Evaluation board with STM32G484QE MCU

Support and Applications

    • Part Number

      STM32, STM8 and ST Ecosystem trainings

00 Files selected for download

Technical Documentation

    • Description Version Size Action
      DB3759
      STM32Cube embedded software for STM32G4 Series including HAL, low-layer drivers and dedicated middleware
      1.0
      130.53 KB
      PDF
      DB3759

      STM32Cube embedded software for STM32G4 Series including HAL, low-layer drivers and dedicated middleware

    • Description Version Size Action
      AN5305
      Digital filter implementation with the FMAC using STM32CubeG4 MCU Package
      1.0
      740.71 KB
      PDF
      AN5325
      Getting started with the CORDIC accelerator using STM32CubeG4 MCU Package
      1.0
      405.67 KB
      PDF
      AN5315
      STM32Cube firmware examples for STM32G4 Series
      1.0
      387.37 KB
      PDF
      AN5305

      Digital filter implementation with the FMAC using STM32CubeG4 MCU Package

      AN5325

      Getting started with the CORDIC accelerator using STM32CubeG4 MCU Package

      AN5315

      STM32Cube firmware examples for STM32G4 Series

    • Description Version Size Action
      UM2570
      Description of STM32G4 HAL and low-layer drivers
      1.0
      9.78 MB
      PDF
      UM1722
      Developing Applications on STM32Cube with RTOS
      2.5
      710.15 KB
      PDF
      UM2492
      Getting started with STM32CubeG4 for STM32CubeG4 Series
      1.0
      649.34 KB
      PDF
      UM2573
      STM32CubeG4 Nucleo demonstration firmware
      1.0
      3.7 MB
      PDF
      UM2583
      STM32CubeG4 STM32G474E-EVAL demonstration firmware
      1.0
      5.51 MB
      PDF
      UM2570

      Description of STM32G4 HAL and low-layer drivers

      UM1722

      Developing Applications on STM32Cube with RTOS

      UM2492

      Getting started with STM32CubeG4 for STM32CubeG4 Series

      UM2573

      STM32CubeG4 Nucleo demonstration firmware

      UM2583

      STM32CubeG4 STM32G474E-EVAL demonstration firmware

Presentations & Training Material

    • Description Version Size Action
      STM32 Embedded Software overview 2.5
      342.73 KB
      PDF
      STM32 and STM8 embedded software solutions 7.0
      3.12 MB
      PDF
      STM32G4 Mainstream MCUs Product Overview 1.0
      3.37 MB
      PDF

      STM32 Embedded Software overview

      STM32 and STM8 embedded software solutions

      STM32G4 Mainstream MCUs Product Overview

Publications and Collaterals

    • Description Version Size Action
      STM32Cube eases STM32 development 18.12
      1.13 MB
      PDF
      STM32G4 Series Mainstream MCUs 1.2
      916.54 KB
      PDF

      STM32Cube eases STM32 development

      STM32G4 Series Mainstream MCUs

    • Description Version Size Action
      STM32 32-bit MCU family - Leading supplier of Arm® Cortex®-M microcontrollers 18.02
      2.06 MB
      PDF

      STM32 32-bit MCU family - Leading supplier of Arm® Cortex®-M microcontrollers

Legal

    • Description Version Size Action
      SLA0048
      Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT
      5.5
      87.58 KB
      PDF
      SLA0048

      Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT