Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

Similar documents
USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on STUSB1602. Description

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery. Features. Description

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on the STUSB1602

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery Data brief. Features. Description

UM2051 User manual. Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery. Introduction

NUCLEO-L496ZG. STM32 Nucleo-144 board. Features. Description

NUCLEO-L433RC-P NUCLEO-L452RE-P

How to upgrade the firmware on the STEVAL-USBC2DP USB Type-C to DisplayPort adapter

EVALKITSTKNX. Miniature transceiver STKNX evaluation and development kit. Features

Getting started with X-CUBE-LED channel LED driver software expansion based on LED1642GW for STM32Cube

Getting started with the digital MEMS microphone expansion board based on MP34DT01-M for STM32 Nucleo

TN1235 Technical note

UM1853 User manual. STM32CubeF1 Nucleo demonstration firmware. Introduction

32F412GDISCOVERY. Discovery kit with STM32F412ZG MCU. Features. Description

AN4624 Application note

STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

P-NUCLEO-53L1A1. VL53L1X nucleo pack with X-NUCLEO-53L1A1 expansion board and STM32F401RE nucleo board. Description. Features

Getting started with the X-CUBE-NFC5 high performance HF reader / NFC initiator IC software expansion for STM32Cube

Getting started with MotionPM real-time pedometer library in X CUBE-MEMS1 expansion for STM32Cube

UM2045 User manual. Getting started with the X-CUBE-NFC3 near field communication transceiver software expansion for STM32Cube.

UM1724 User manual. STM32 Nucleo boards. Introduction

Getting started with the FP-NET-6LPBLE1 function pack for 6LoWPAN IoT node connection to a smartphone via BLE interface

P-NUCLEO-53L0A1. VL53L0X Nucleo pack with ranging, gesture detection sensor expansion board and STM32F401RE. Description. Features

Getting started with X-NUCLEO-IHM06A1 low voltage stepper motor driver expansion board based on STSPIN220 for STM32 Nucleo

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

STM32L4R9I-EVAL. Evaluation board with STM32L4R9AI MCU. Features

Getting started with the FP-SNS-ALLMEMS1 Bluetooth low energy and sensors software expansion for STM32Cube

UM1724 User manual. STM32 Nucleo boards. Introduction

STM32H7x3I-EVAL. Evaluation board with STM32H7x3XI MCUs. Data brief. Features

Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via Wi-Fi

EVALKIT-VL6180X. VL6180X plug-in and STM32 F401RE Nucleo board explorer kit. Description. Features

P-NUCLEO-IKA02A1. STM32 Nucleo pack: electrochemical toxic gas sensor expansion board with CO sensor. Description. Features

32F469IDISCOVERY. Discovery kit with STM32F469NI MCU. Features. Description

Getting started with MotionPM real-time pedometer library in X-CUBE-MEMS1 expansion for STM32Cube

UM2084 User manual. Getting started with the ultra-low-power STM32 and LoRa Nucleo pack. Introduction

UM2350. Getting started with MotionPW real-time pedometer for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

UM2216 User manual. Getting started with MotionFA fitness activity library in X CUBE MEMS1 expansion for STM32Cube. Introduction

UM1724 User manual. STM32 Nucleo-64 boards. Introduction

UM2276. Getting started with MotionSD standing vs sitting desk detection library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

P-NUCLEO-6180X2. Proximity, gesture, ambient light sensor expansion board based on VL6180X for STM32L053R8. Description. Features

Getting started with the P-NUCLEO-IKA02A1 STM32 Nucleo pack for electrochemical toxic gas sensor expansion board with CO sensor

Getting started with the X-CUBE-IKA02A1 multifunctional software expansion for STM32Cube

Getting started with X-NUCLEO-53L1A1 long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo

Getting started with the ultra-low-power STM32 and LoRa Nucleo pack

Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo. Description

X-NUCLEO-53L0A1. Ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo. Description. Features

X-NUCLEO-53L1A1. Long distance ranging Time-of-Flight sensor expansion board based on VL53L1X for STM32 Nucleo. Description.

32F746GDISCOVERY. Discovery kit with STM32F746NG MCU. Features. Description

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

32L476GDISCOVERY. Discovery kit with STM32L476VG MCU. Features. Description

X-NUCLEO-53L0A1 ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo

ST25DV-DISCOVERY. Discovery kit for the ST25DV04K dynamic NFC/RFID tag. Features

UM2194. Getting started with MotionAW activity recognition for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Using the GPIOs and interrupt controller to drive LEDs on STM8 Nucleo-64 boards

UM2495. High performance HF reader / NFC initiator IC software expansion for NUCLEO-8S208RB. User manual. Introduction

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with the X-CUBE-53L1A1 Time-of-Flight long distance ranging sensor software expansion for STM32Cube

TA0357. Overview of USB Type-C and Power Delivery technologies. Technical article. Introduction

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with the software package for L6474 stepper motor driver X-CUBE-SPN1 expansion for STM32Cube

Getting started with the X-NUCLEO-IHM14A1 stepper motor driver expansion board based on STSPIN820 for STM32 Nucleo

UM2255 User manual. SPC58NG-DISP user manual. Introduction

DT0095 Design tip. Datalogging the SensorTile through a PC. Purpose and benefits. Description

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.2.

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.

Getting started with the X-CUBE-SPN3 high power stepper motor driver software expansion for STM32Cube

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

AN4311 Application note

AN4515 Application note

Getting started with X-NUCLEO-LED16A1 16-channel LED driver expansion board for STM32 Nucleo

AN4782 Application note

RN0084 Release note. ST-LINK/V2 firmware upgrade. About this release note

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Bluetooth low energy profiles for the X-CUBE-BLE1 expansion for STM32Cube. Description

UM2092 User manual. Basic metrology firmware for the STM32F103RD and the STPM32 devices. Introduction

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

Running a simple 6LowPAN network consisting of one receiver node and one or more sensor nodes in a Sub-1GHz RF band

AN5123 Application note

Motor control power board based on the SLLIMM-nano 2 nd series

Getting started with the X-NUCLEO-EEPRMA1 standard I²C and SPI EEPROM memory expansion board based on M24xx and M95xx series for STM32 Nucleo

Getting started with the high power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo

UM2461 User manual. SPC584B-DIS Discovery Board. Introduction

Getting started with the STSW-BCNKT01 software package for STEVAL-BCNKT01V1 based on STM32Cube

Description. July 2016 DocID Rev 2 1/6

Getting started with osxmotiongc gyroscope calibration library for X-CUBE-MEMS1 expansion for STM32Cube

Getting started with STEVAL-IDB007V1 and STEVAL-IDB008V1 evaluation boards

UM1862 User manual. Getting started with STM32F411E Discovery software Development Tools. Introduction

Getting started with the software package for digital MEMS microphones in X-CUBE-MEMSMIC1 expansion for STM32Cube

EVLKSTCOMET10-1. STCOMET smart meter system-on-chip development kit. Features

Getting started with osxacousticsl real-time sound source localization software expansion for STM32Cube

Getting started with the X-CUBE-SPN2 two-axis stepper motor driver software expansion for STM32Cube

L9958 Evaluation board for high current (8.6A) DC and Stepper Motors. Description

STM3220G-SK/KEI. Keil starter kit for STM32F2 series microcontrollers (STM32F207IG MCU) Features. Description

X-NUCLEO-NFC04A1. Dynamic NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo. Description. Features

EV-VND7040AJ. VND7040AJ evaluation board. Features. Applications

Description. January 2019 DB2381 Rev 3 1/5

Software GUI user guide for STEVAL-ISV021V1, STEVAL- IDS002V1 and STEVAL-IDS003V1 evaluation boards

Getting started with the software package for STEVAL-STLKT01V1 based on STM32Cube

Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube

STEVAL-IPMnM2N. Motor control power board based on the SLLIMM-nano 2 nd series. Description. Features. RoHS compliant

Transcription:

User manual 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 May 2017 DocID030539 Rev 1 1/21 www.st.com

Contents UM2205 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 2/21 DocID030539 Rev 1

List of tables 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 DocID030539 Rev 1 3/21

List of figures List of figures UM2205 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 4/21 DocID030539 Rev 1

Getting started 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 VBUS 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 DocID030539 Rev 1 5/21

Getting started The NUCLEO-F072RB board includes: UM2205 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. 6/21 DocID030539 Rev 1

Figure 3: STM32 Nucleo development board Getting started 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. Bridge reference State Table 1: Solder bridges and resistors to be modified Description SB13 SB14 OFF PA2 and PA3 on STM32F103CBT6 (ST-LINK MCU) are disconnected from PA3 and PA2 of the STM32F072RBT6 MCU. SB15 OFF The SWO signal is not connected to PB3 on STM32F072RBT6 MCU. SB21 OFF Green user LED LD2 is not connected to PA5 on STM32F072RBT6 MCU. R34 R36 SB48 SB49 SB62 SB63 OFF ON ON 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. DocID030539 Rev 1 7/21

Getting started Figure 4: NUCLEO-F072RB board top and bottom view UM2205 1.3 Connectors, jumpers and LEDs Table 2: P-NUCLEO-USB002 expansion board connectors, jumpers and LEDs Reference Description CN7 ST morpho connector CN10 ST morpho connector CN2 USART connector CN4 Power Connector (on bottom side) CN11 VBUS Load PORT_0 CN12 VBUS Load PORT_1 JP000 Port 0 VCONN selector JP001 Port 1 VCONN selector JP100 USB DP line selector JP101 USB DM line selector JP400 VBUS source for PORT_0 (1) JP401 VBUS source for PORT_1 (1) D100 (Blue LED) Role indication for PORT_0 D101 (Green LED) VBUS indication for PORT_0 D102 (Orange LED) CC line indication for PORT_0 D103 (Blue LED) Role indication for PORT_1 D104 (Green LED) VBUS indication for PORT_1 D105 (Orange LED) CC line indication for PORT_1 8/21 DocID030539 Rev 1

Reference D106 (Blue LED) D107 (Blue LED) 3.3V power User LED Description Getting started Notes: (1) allows using the 5V from the NUCLEO-F072RB as VBUS when no external power supply is available and only in the provider role mainly used for demo purposes. If an external power supply is connected, the jumper must be left open Refer to UM2191 on www.st.com for further details. 1.4 Basic configuration setup To run the embedded demonstration example, the hardware must be configured. 1 Plug the P-NUCLEO-USB002 expansion board onto the NUCLEO-F072RB board ST morpho connectors. The correct orientation is pictured below. Figure 5: P-NUCLEO-USB002 mounting orientation 2 Apply the correct NUCLEO-F072RB jumper settings JP1 open JP5 (PWR) closed on U5V JP6 closed (IDD). DocID030539 Rev 1 9/21

Getting started 3 Apply the correct P-NUCLEO-USB002 expansion board jumper settings JP000 and JP001 configured as shown below JP100 and JP101 open Figure 6: P-NUCLEO-USB002 connectors and jumpers UM2205 4 Connect the NUCLEO-F072RB to a PC with a USB Type-A to Mini-B cable (not provided). 1.5 Running demos without a PC This section describes demo operation in standalone mode, without the support of a PC to control the implemented functions 1.5.1 Standalone demo This procedure lets you change modes and observe P-NUCLEO-USB002 LED feedback signals with the basic setup. 1 Stack the boards, set the jumpers and power the NUCLEO-F072RB board via PC USB connection as per the basic configuration requirements. Blue LEDs D100 and D103 for PORT_0 and PORT_1 signal their initial configuration: three blinks - port is a dual role port (DRP). 10/21 DocID030539 Rev 1

Getting started 2 Connect the two Type-C receptacles on the expansion board using the USB Type- C cables provided Blue LEDs D100 and D103 for PORT_0 and PORT_1 signal the current role of the port: one blink - port is a provider two blinks - port is a consumer 3 Change the orientation of the cables. Orange LEDs D102 and D105 for PORT_0 and PORT_1 signal the CC line used: one blink - CC1 two blinks - CC2 4 Wait until an explicit contract is established. Green LEDs D101 and D104 for PORT_0 and PORT_1 signal: LED on - the port has defined an explicit contract with the port partner LED blinking - the port, as provider or consumer, is supplying or is sinking power, respectively LED off - no power is being provided or sunk on the port 1.5.2 Standalone demo with external hardware connected This procedure lets you change modes and observe P-NUCLEO-USB002 LED feedback signals with an external port partner. In the Provider and DRP roles, the exposed power profiles are dummies. 1 Stack the boards, set the jumpers and power the NUCLEO-F072RB board via PC USB connection as per the basic configuration requirements. Blue LEDs D100 and D103 for PORT_0 and PORT_1 signal their initial configuration: three blinks - port is a dual role port (DRP). 2 Connect P-NUCLEO-USB002 CN2 to NUCLEO-F072RB CN3 with the female wires included in the package. Connections: CN2_1 to CN3_TX CN2_2 to CN3_RX 3 Connect the Type-C to Type-C cable to one of the expansion board ports The initial role of both ports is DRP. DocID030539 Rev 1 11/21

Getting started UM2205 4 Connect the other plug of the USB Type-C cable to an external port partner. Blue LEDs D100 and D103 for PORT_0 and PORT_1 signal the current role of the port: one blink - port is a provider two blinks - port is a consumer Orange LEDs D102 and D105 for PORT_0 and PORT_1 signal the CC line used: one blink - CC1 two blinks - CC2 Green LEDs D101 and D104 for PORT_0 and PORT_1 signal: LED on - the port has defined an explicit contract with the port partner LED blinking - the port, as provider or consumer, is supplying or is sinking power, respectively LED off - no power is being provided or sunk on the port 5 Use the command line interface to interact with the application. 1.6 Running demos with a PC The following demonstration applications require a PC for serial communication through the "Command Line Interface" (CLI), which lets you access power delivery application data and send commands. Ensure that P-NUCLEO-USB002 expansion board CN2 is connected to NUCLEO-F072RB CN3 using the female wires included in the package: CN2_1 to CN3_TX CN2_2 to CN3_RX Figure 7: CN2_1 and CN3_TX pin indications 12/21 DocID030539 Rev 1

1.6.1 Standalone demo with PC Getting started 1 Connect the NUCLEO-F072RB board to the PC via the virtual COM port with a standard serial terminal program. Configuration: Baudrate: 115200 Data bit: 8 Parity: none Stop bit: 1 Hardware Flow Control: None 2 Use the CLI to access port status and profile information. When the port is a consumer, you can command it to request a different profile, if available. A "welcome message" is shown in the terminal on board startup or reset (reset button on NUCLEO-F072RB board). DocID030539 Rev 1 13/21

Getting started UM2205 3 Type "help" (or "?") and hit enter to list the supported commands Figure 8: CLI - list of available commands Table 3: CLI commands Command (shortcut) Parameter1 Parameter2 Description help (?) none none List available commands welcome (w) none none Print welcome message and copyright information to screen profiles (p) Port Number none Show available power profiles status (s) Port Number none Show PD port information and status request (r) Port Number Profile number Change power profile on PD port (consumer only) prswap (x) Port Number none Start a power role swap for the port hardreset (h) Port Number none Send a hard reset command to the port 4 Disconnect the USB type-c cable from the port. 14/21 DocID030539 Rev 1

Getting started 5 Type "profiles" (or "p") plus the port number and hit enter The "profiles" command shows the available power profiles for provider or DRP role (the demo has four dummy power profiles) Figure 9: CLI - list of available profiles 6 Type "status" (or "s") plus the port number and hit enter The "status" command indicates whether the cable is plugged and the current role of the port. Figure 10: CLI profiles and status commands - ports not connected 7 Connect PORT_0 to PORT_1 DocID030539 Rev 1 15/21

Getting started UM2205 8 Type "status" (or "s") plus the port number and hit enter The CLI returns information regarding the role, the CC line used and the selected profile for each port. Figure 11: CLI status command Port_0 connected to Port_1 9 Type "prswap" (or "x") plus the port number and hit enter The CLI returns information about the newly acquired roles and corresponding capabilities. Figure 12: CLI prswap command 16/21 DocID030539 Rev 1

Getting started 10 Type "hardreset" (or "h") plus the port number and hit enter The CLI returns information regarding the status with the new capabilities. Figure 13: CLI hardreset command 1.6.2 Demo with PC and externally powered board 1 Connect a PD consumer to one of the ports via external USB Type-C cable The P-NUCLEO-USB002 becomes a provider and sends the source capabilities of the four "dummy" power profiles: 5 V at 3 A 9 V at 2 A 12 V at 2 A 20 V at 2 A DocID030539 Rev 1 17/21

Getting started UM2205 2 Type "status" (or "s") plus port number and hit enter The CLI returns the dummy power profiles requested by the consumer and the cable orientation. Figure 14: CLI status command Port_0 connected to external PD consumer 3 Connect a PD provider to one of the ports via external USB Type-C cable The P-NUCLEO-USB002 becomes a consumer. 4 Type "profiles" (or "p") plus port number and hit enter This command shows the list of the power profiles received from the port partner 18/21 DocID030539 Rev 1

Getting started 5 Type "status" (or "s") plus port number and hit enter This command shows the requested power profile and the cable orientation. Figure 15: CLI status and profiles commands Port_1 connected to external PD provider 6 Type "request" (or "r") plus port number and new profile number and hit enter This command changes the power profile according to the specified parameter and restarts consumer and provider contract negotiation for the selected power. Figure 16: CLI request command Port_1 connected to external PD provider DocID030539 Rev 1 19/21

Revision history UM2205 2 Revision history Table 4: Document revision history Date Version Changes 04-May-2017 1 Initial release. 20/21 DocID030539 Rev 1

IMPORTANT NOTICE PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. 2017 STMicroelectronics All rights reserved DocID030539 Rev 1 21/21