STSW-STUSB014
Firmware package
documentation
V1.1
Overview
3
The software library includes 8 different software frameworks
already optimized to address most common application scenario:
STM32G474_MB1303_SRC_ONLY (*)
Provider / SOURCE (power management)
SOURCE (power management)
message support + UFP support (Billboard class)
STM32G474_MB1303_SNK_ONLY (*)
Consumer / SINK (power management)
+ extended
message support + UFP support (Billboard class)
STM32G474_MB1303_DRP_ONLY (*)
Role Port (power management)
Role Port (power management)
extended message support + UFP support (Billboard class)
STM32G474_MB1303_DRP_2PORTS
Role Port (power management) + dead battery mode
extended message support + UFP support (HID class)
Dual Role Port requesting
PR_swap when attached in Sink or
when attached in Source + UFP support (HID class)
- by default, all projects are packaged with RTOS support
- project annotated with a (*) are available with and without RTOS support
• Projects folder provides different application examples in which each
project name is prefix with MCU name:
Folder view
4
• Project name is build as: MCUname_shieldref_TypeCrole_type
Projects can be compiled with either:
• IAR 8.x,
• GCC using GNU Arm Embedded Toolchain (version used: 9 2020-q2-update with GNU make-4.3),
• STM32CubeIDE (download here).
Compiler
5
Type = ONLY
• Those projects are simple ones. Only mandatory features are present, with RTOS
Type = ONLY_noRTOS
• Those projects are simple ones. Only mandatory features are present, without RTOS
Type = VDM
• Those projects are complex ones. Lot of optional features are present and could be
disabled/enabled by compilation switch
Type = SRCING_DEVICE
• This project is DRP sourcing device: application always try to achieve power role as
source and data role as UFP
Project Type
6