
1.3.1.2 Running the demo application with NUCLEO-G474RE development board
The NUCLEO-G474RE development board embeds the STM32G474RE microcontroller with the UCPD and
USB2.0 data peripherals. To run the application demo with the NUCLEO-G474RE, powering the system via
ST-LINK micro-USB connector, follow the procedure below.
Step 1. Check the jumper is closed on the development board JP5 header, 5V_STLK 1-2 pins.
Step 2. On the X-NUCLEO-SNK1M1 expansion board, fit CC1 JP1 and CC2 JP2 jumpers on position 1-2.
Step 3. Plug the expansion board on top of the STM32 Nucleo and leave JP3 and JP4 headers open.
Step 4. Connect the NUCLEO-G474RE micro-USB connector (CN1) to the PC/laptop.
The board appears as a virtual disk (NODE_G474RE).
Step 5. Program the STM32G474RE by dragging and dropping the binary file corresponding to the board
(G4_SNK1M1_Consumer.bin) to the virtual disk.
STM32 Nucleo LD1 LED blinks red and green for few seconds. When the LED stops blinking, the
programming operation is complete and the demo is ready.
Step 6. Plug a Source application board on the X-NUCLEO-SNK1M1 expansion board CN1 connector through
a USB Type-C® cable and refer to the following LED operation description to identify the application
results:
–NUCLEO-G474RE LD3 LED is ON when the board is supplied by the ST-LINK micro-USB
connector (CN1)
–X-NUCLEO-SNK1M1 LD2 LED is ON when the 3V3 voltage is provided to the expansion board
by the STM32 Nucleo
–X-NUCLEO-SNK1M1 LD1 LED is ON when a Source is connected to the USB Type-C® CN1
connector and the VBUS is provided
–NUCLEO-G474RE LD2 LED:
◦ blinks once every 2 seconds when USB default (up to 500 mA) is identified
◦ blinks twice every 2 seconds when a Source USB Type-C® 1.5 A current capability is
identified;
◦ blinks 3 times every 2 seconds when a Source USB Type-C® 3 A current capability is
identified;
◦ blinks 4 times every 2 seconds when the explicit negotiation between the two contractors is
reached;
◦ turns ON when the explicit negotiation between the two contractors is reached and the
USB2.0 data connection is established.
1.3.1.2.1 Dead battery operation mode
Step 1. Repeat steps 1- 4 described in Section 1.3.1.2
Step 2. Disconnect the micro-USB cable from NUCLEO-G474RE CN1.
Step 3. Remove the power selection jumper from the JP2 header on NUCLEO-G474RE development board
(previously set on STLK 1-2 pins) and leave it fully open.
Step 4. Set JP8 jumper on 2-3 pins.
Step 5. On the X-NUCLEO-SNK1M1, set LDO OUT jumper (JP3) and NRST jumper (JP4).
Step 6. Plug a Source board to X-NUCLEO-SNK1M1 CN1 connector through a USB Type-C® cable.
The provided VBUS supplies the Sink solution while the LEDs define the status as previously described.
1.3.1.3 Running the demo application with NUCLEO-L412RB-P development board
The NUCLEO-L412RB-P development board embeds the STM32L412RB microcontroller which includes the
USB2.0 data peripheral only. The application example demonstrates that the TCPP01-M12 protection can be
matched with microcontrollers which does not include the UCPD peripheral to implement a USB Type-C® Sink
port only, thus exploiting the microcontroller ADC peripherals to monitor the current capabilities of the Source. To
run the application demo with the NUCLEO-L412RB-P, powering the system via ST-LINK micro-USB connector,
follow the procedure below.
UM2773
Demo application setup
UM2773 - Rev 6 page 12/23