Introduction
The STM32CubeG4 MCU Package is delivered with a set of examples running on STMicroelectronics boards. The examples
are organized by board and provided with preconfigured projects for the main supported toolchains (refer to Figure 1).
In the STM32CubeG4 MCU Package, most of examples and applications projects are generated with the STM32CubeMX tool
(starting from version v5.0.0) to initialize the system, peripherals, and middleware stacks. The user can open the provided ioc
file in STM32CubeMX to modify the settings, and add additional peripherals, middleware components or both, to build his final
application. For more information about STM32CubeMX, refer to the STM32CubeMX for STM32 configuration and initialization
C code generation user manual (UM1718).
Figure 1. STM32CubeG4 firmware components
Middleware level
(1)
Utilities
Application level demonstrations
HAL and LL APIs
(1) The set of middleware components depends on the product Series.
User
application
Evaluation
boards
Discovery
boards
STM32 Nucleo
boards
Dedicated
boards
USB PD FAT file systemRTOS
Hardware abstraction layer APIs
(HAL)
Board Support Package (BSP) Low-layer APIs (LL)
Utilities
CMSIS
USB Device
STM32Cube firmware examples for STM32G4 Series
AN5315
Application note
AN5315 - Rev 3 - August 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
1 Reference documents
The following items make up a reference set for the examples presented in this application note. They are
available on www.st.com/stm32cubefw.
Latest release of the STM32CubeG4 MCU Package for the 32-bit microcontrollers in the STM32G4 Series
based on the Arm
®
Cortex
®
-M4 processor
Getting started with STM32CubeG4 for STM32G4 Series (UM2492)
Description of STM32G4 HAL and low-layer drivers (UM2570)
STM32CubeG4 Nucleo demonstration firmware (UM2573)
STM32CubeG4 STM32G474E-EVAL demonstration firmware (UM2583)
Managing USB power delivery systems with STM32 microcontrollers (UM2552)
Developing applications on STM32Cube with FatFS (UM1721)
Developing applications on STM32Cube with RTOS (UM1722)
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
AN5315
Reference documents
AN5315 - Rev 3
page 2/35