
Getting started with the STM32 Nucleo pack for USB Type-C™ and
Power Delivery with the Nucleo-F072RB board and the STUSB1602
Introduction
The USB Type-C™ and Power Delivery Nucleo pack P-NUCLEO-USB002 includes:
the NUCLEO-F072RB board
the P-NUCLEO-USB002 expansion board based on the certified STUSB1602 USB Type-C port
controller with PD PHY and BMC driver
a full-featured Type-C cable
These components, together with the X-CUBE-USB-PD certified STM32F0 USB Type-C PD middleware
stack, form a platform for demonstrating USB Type-C and USB Power Delivery (USB PD) capabilities
and facilitating solution development.
The new USB PD protocol expands USB functionality by providing up to 100 W power over the same
cable used for data communication. Devices supporting the protocol are able to negotiate voltage and
current over the USB power pins and define their roles as Provider or Consumer accordingly.
Once the platform is configured, the embedded demonstration firmware can signal cable status
(attached or detached) and orientation information, as well as the role of each of the two ports.
Figure 1: P-NUCLEO-USB002 kit

Contents
1 Getting started ................................................................................. 5
1.1 System architecture .......................................................................... 5
1.2 NUCLEO-F072RB STM32 Nucleo board .......................................... 6
1.3 Connectors, jumpers and LEDs ........................................................ 8
1.4 Basic configuration setup .................................................................. 9
1.5 Running demos without a PC .......................................................... 10
1.5.1 Standalone demo ............................................................................. 10
1.5.2 Standalone demo with external hardware connected ...................... 11
1.6 Running demos with a PC ............................................................... 12
1.6.1 Standalone demo with PC ................................................................ 13
1.6.2 Demo with PC and externally powered board .................................. 17
2 Revision history ............................................................................ 20

List of tables
Table 1: Solder bridges and resistors to be modified ................................................................................. 7
Table 2: P-NUCLEO-USB002 expansion board connectors, jumpers and LEDs ...................................... 8
Table 3: CLI commands ............................................................................................................................ 14
Table 4: Document revision history .......................................................................................................... 20

List of figures
Figure 1: P-NUCLEO-USB002 kit ............................................................................................................... 1
Figure 2: The two boards composing the P-NUCLEO-USB002 kit ............................................................ 5
Figure 3: STM32 Nucleo development board ............................................................................................. 7
Figure 4: NUCLEO-F072RB board top and bottom view ............................................................................ 8
Figure 5: P-NUCLEO-USB002 mounting orientation .................................................................................. 9
Figure 6: P-NUCLEO-USB002 connectors and jumpers .......................................................................... 10
Figure 7: CN2_1 and CN3_TX pin indications .......................................................................................... 12
Figure 8: CLI - list of available commands................................................................................................ 14
Figure 9: CLI - list of available profiles ...................................................................................................... 15
Figure 10: CLI profiles and status commands - ports not connected ....................................................... 15
Figure 11: CLI status command – Port_0 connected to Port_1 ............................................................... 16
Figure 12: CLI prswap command .............................................................................................................. 16
Figure 13: CLI hardreset command .......................................................................................................... 17
Figure 14: CLI status command – Port_0 connected to external PD consumer ...................................... 18
Figure 15: CLI status and profiles commands – Port_1 connected to external PD provider .................... 19
Figure 16: CLI request command – Port_1 connected to external PD provider ....................................... 19

1 Getting started
1.1 System architecture
The P-NUCLEO-USB002 USB Type-C™ and power delivery kit includes:
1. a NUCLEO-F072RB development board acting as the control board running the stack
2. a P-NUCLEO-USB002 expansion board acting as a Type-C and Power Delivery
interface, with two STUSB1602 Type-C PD controllers
3. A full-featured and certified USB Type-C cable
Figure 2: The two boards composing the P-NUCLEO-USB002 kit
The P-NUCLEO-USB002 USB Type-C and Power Delivery expansion board is equipped
with:
two DRP USB Type-C™ ports managed by two STUSB1602 Type-C port controllers
optional V
BUS
current sensing (and discrete voltage monitoring)
dedicated power connector to interface with an external power supply (not included) to
provide different profiles as well as VCONN (5V), if necessary
on-board power management able to provide internal supply voltages
six status-control LEDs for USB-PD port purposes, a user LED and a power LED
USB 2.0 interface capability available on both Type-C portsthere is only one USB 2.0
controller, which can be mapped to either port or in pass-through configuration.
RoHS compliant
PCB type and size:
PCB material: FR4
four-layer architecture
copper thickness: 35 µm

The NUCLEO-F072RB board includes:
an STM32F072RBT6 32-bit microcontroller based on ARM® Cortex®-M0 with 128-
Kbytes of Flash memory, 16-Kbytes of SRAM and a USB 2.0 full speed data interface
in a LQFP64 package
extension resources:
Arduino Uno revision 3 connectivity
ST morpho extension pin headers for full access to all STM32 I/Os
on-board ST-LINK/V2-1 debugger/programmer with SWD connector:
selection-mode switch to use the kit as a standalone ST-LINK/V2-1
flexible board power supply:
USB VBUS on Type-B connector or external source
Power management access point
LEDs:
USB communication (LD1)
user LED (LD2)
power LED (LD3)
push buttons:
USER
RESET
USB re-enumeration capability; interfaces supported on USB:
Virtual Com port
Mass storage
Debug port
Supported by various integrated development environments (IDEs):
IAR™
Keil®
GCC-based IDEs
The NUCLEO-F072RB included in the kit has a different solder bridge
configuration with respect to the default one (see Table 1: "Solder bridges and
resistors to be modified")
1.2 NUCLEO-F072RB STM32 Nucleo board
The STM32 Nucleo board provides an affordable and flexible way for solution and
prototype development with any of STM32 microcontroller lines.
The board STM32F072RBT6 32-bit microcontroller is based on the ARM® Cortex®-M0 with
128 Kb Flash memory and 16 Kb SRAM.
The Arduino™ connectivity support and ST morpho headers make it easy to expand with a
wide range of specialized expansion boards.
Separate probes are not required as it integrates the ST-LINK/V2-1 debugger/programmer.
The STM32 Nucleo board comes with the comprehensive STM32 HAL software library
together with various packaged software examples.
Visit http://www.st.com/stm32nucleo for more information.

Figure 3: STM32 Nucleo development board
The solder bridge configuration on the NUCLEO-F072RB Nucleo board is customized to
support USB PD applications (see Table 1: "Solder bridges and resistors to be modified"
and Figure 4: "NUCLEO-F072RB board top and bottom view").
For further information, please refer to user manual UM1724 STM32 Nucleo-64 boards on
www.st.com.
Table 1: Solder bridges and resistors to be modified
PA2 and PA3 on STM32F103CBT6 (ST-LINK MCU) are disconnected from
PA3 and PA2 of the STM32F072RBT6 MCU.
The SWO signal is not connected to PB3 on STM32F072RBT6 MCU.
Green user LED LD2 is not connected to PA5 on STM32F072RBT6 MCU.
LSE not used: PC14 and PC15 used as GPIOs instead of low speed clock.
To connect another USART (not the default USART2) to STLINK MCU,
using flying wires between ST morpho connector and CN3.
SB13 and SB14 should be OFF.