ST STSW-STUSB014 User Manual

STSW-STUSB014 Firmware package
documentation
V1.1
Table of Content
2
4 Folder view
7 Compilation switches
9
Shield MCU setup
10
_GPIO_FOR_SRC
11
_VVAR_FLASH
12
Projects Overview
5 Compiler
Overview
3
The software library includes 8 different software frameworks already optimized to address most common application scenario:
Project
Typical
Application
#1
STM32G474_MB1303_SRC_ONLY (*)
Provider / SOURCE (power management)
#2
STM32G474_MB1303_SRC_VDM
Provider /
SOURCE (power management)
+ extended
message support + UFP support (Billboard class)
#3
STM32G474_MB1303_SNK_ONLY (*)
Consumer /
SINK (power management)
#4
STM32G474_MB1303_SNK_VDM
Consumer / SINK (power management)
+ extended
message support + UFP support (Billboard class)
#5
STM32G474_MB1303_DRP_ONLY (*)
Dual
Role Port (power management)
#6
STM32G474_MB1303_DRP_VDM
Dual
Role Port (power management)
+
extended message support + UFP support (Billboard class)
#7
STM32G474_MB1303_DRP_2PORTS
2 x Dual
Role Port (power management) + dead battery mode
+
extended message support + UFP support (HID class)
#8
STM32G474
_MB1303_DRP_SRCING_DEV
Dual Role Port requesting
PR_swap when attached in Sink or
DR_swap
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
Loading...
+ 13 hidden pages