This application provides an example for managing the Port 0 as a Source port.
STM32CubeMonUCPD graphical user interface is enabled.
User can use the STM32CubeMonUCPD running on a computer to control the STM32G4XX to send some USB power delivery messages through the integrated UCPD peripheral.
This application has been certified with USB-PD Test Conformance Tools (Ellisys, MQP, GRL and LeCroy).
Vendor Information File, used for Conformance testing and describing Port capabilities and supported options is provided in application directory in STMicroelectronics_SRC1M1_Source_STM32G474RE_VIF.xml file.
This application is based on the following wiki: STM32_Advance_USB-Power_Delivery_Source
Connect STM32CubeMonUCPD on the VCP associated to our board (only available if USB cable is connected) The STM32CubeMonUCPD will be used to trace all the messages exchange between the ports partner.
Errors are detected and the corresponding message is displayed on the STM32CubeMonUCPD.
User is familiar with USB-PD 3.1 "Universal Serial BUS Power Delivery" Specification.
None.
Connectivity, UART/USART, USB_PD_Lib, UCPD, Type C, USBPD
-
This application runs on STM32G4XX devices
-
This application has been tested with STMicroelectronics NUCLEO-G474RE board with X-NUCLEO-SRC1M1 expansion board and can be easily tailored to any other supported device and development board.
-
X-NUCLEO-SRC1M1 Set-up
- No specific Jumpers required. A power supply should be connected to CN3 connector.
In order to make the program work, you must do the following :
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the application