background image

Getting started

 

UM2205 

 

12/21 

DocID030539 Rev 1 

 

 

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 

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 

 

 

Summary of Contents for UM2205

Page 1: ...UBE 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 US...

Page 2: ...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 ...

Page 3: ... DocID030539 Rev 1 3 21 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 ...

Page 4: ...e 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...

Page 5: ...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 ...

Page 6: ...torage 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...

Page 7: ... com Table 1 Solder bridges and resistors to be modified Bridge reference State Description SB13 OFF PA2 and PA3 on STM32F103CBT6 ST LINK MCU are disconnected from PA3 and PA2 of the STM32F072RBT6 MCU SB14 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 OFF LSE not used PC14 and PC15 used as GPIOs ins...

Page 8: ...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 ...

Page 9: ...rnal 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 App...

Page 10: ...mos 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 requiremen...

Page 11: ... 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 F072R...

Page 12: ...ontract 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 ...

Page 13: ...ial 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 ...

Page 14: ... 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 ...

Page 15: ...r 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 ...

Page 16: ...s 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 ...

Page 17: ... 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 ...

Page 18: ...he 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 ...

Page 19: ... 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 ...

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

Page 21: ...asers 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 S...

Reviews: