
STSW-STUSB014
Quick Start Guide
STUSB1602 software
library for STM32G474

QUICK START
Introduction
2
SOFTWARE
STSW-STUSB014
STUSB1602 software library for STM32G474
GNU Arm Embedded Toolchain
Integrated Development Environment for STM32
Nucleo development board
P-NUCLEO-USB002
Nucleo Pack containing MB1303 shield
Nucleo expansion board to be plugged on NUCLEO-G474RE)
This document provides an overview of the STUSB1602 software package
enabling USB PD stack with NUCLEO-G474RE and MB1303 shield

SW library set-up
(1/3)
3
Download the STUSB1602 software package by searching STSW-STUSB014
from www.st.com home page:
1

SW library set-up
(2/3)
4
Then click on “Get Software” from either the bottom or top of the page
Download will start after accepting the License Agreement, and filling contact information.
2
3
1.1.0STSW-STUSB014

SW library set-up
(3/3)
5
Save the file en.STSW-STUSB014v1.1.zip on your laptop
and unzip:
4
5
The package contains a DOC directory, ready-to-use binary files, associated projects
and compliance reports
en.STSW-STUSB014v1.1.zip
STSW_STUSB014_v1.1

Suggested
Hardware requirements
6
The software library has been optimized to quickly compile on the NUCLEO-G474RE development board
stacked with MB1303 expansion board (from P-NUCLEO-USB002 package).
MB1303 is composed of 2 Dual Role Ports (DRP) USB PD capable receptacles (form factor not optimized)
NUCLEO-G474RE
MB1303
(Board contained in
P-NUCLEO-USB002 orderable package)

Software package
Overview
8
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

For more details, please check
Firmware Package documentation:
9