How stmicroelectronics/stm32cubeg4 works
STM32CubeG4 is an embedded firmware package for STM32G4 boards, not a single application. The principal workflow is for an engineer to choose a board-specific project, run its firmware on the target, and observe the demonstrated peripheral or application behavior. The README documents CMSIS, HAL/LL, BSP, middleware, and board projects as package capabilities; the supplied tree and excerpts show selected examples, DSP/controller code, and storage integrations. Several documented subsystems are represented at their available directory paths because their implementation was not sampled.
Main entry points: main.c Board templates · ADC ADC examples · I2C I2C examples · Digital_Power Digital power
Components 17
Platform layers
- CMSIS core
Drivers/CMSIS/Core - HAL and LL
Drivers - Board support
Drivers/BSP/Adafruit_Shield
Board projects
- Board templates
Projects/NUCLEO-G431KB/Templates/Src/main.c - ADC examples
Projects/NUCLEO-G431RB/Examples_LL/ADC - I2C examples
Projects/NUCLEO-G431RB/Examples_LL/I2C - FreeRTOS examples
Projects/NUCLEO-G431KB/Applications/FreeRTOS
Applications
- Digital power
Projects/B-G474E-DPOW1/Applications/Digital_Power - Power demonstrations
Projects/B-G474E-DPOW1/Demonstrations - USB mass storage
Projects/STM32G474E-EVAL/Applications/USB_Device/MSC_Standalone/USB_Device/App/usbd_storage_if.c - Demo storage
Projects/STM32G474E-EVAL/Demonstrations/Core/Src/k_storage.c
Libraries and middleware
- CMSIS-DSP
Drivers/CMSIS/DSP/Include/arm_math.h - DSP controllers
Drivers/CMSIS/DSP/Source/ControllerFunctions/ControllerFunctions.c - DSP test suite
Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/src/controller_tests/controller_test_common_data.c - Middleware libraries
Drivers
Other components
- Firmware engineer
- STM32G4 boards
Connections 13
- Firmware engineer → Board templates: selects project
- Firmware engineer → ADC examples: selects example
- Firmware engineer → I2C examples: selects example
- Firmware engineer → Digital power: selects application
- Board templates → STM32G4 boards: runs on
README.md - ADC examples → STM32G4 boards: runs on
README.md - I2C examples → STM32G4 boards: runs on
README.md - Digital power → STM32G4 boards: runs on
README.md - Power demonstrations → STM32G4 boards: runs on
README.md - USB mass storage → STM32G4 boards: runs on
README.md - DSP controllers → CMSIS-DSP: implements functions
Drivers/CMSIS/DSP/Source/ControllerFunctions/ControllerFunctions.c - DSP test suite → CMSIS-DSP: exercises
- Demo storage → Middleware libraries: uses storage stack