This section provides an example workflow for how to use the EZ-PD™ Configurator with the USBPD-Sink code example (https://github.com/Infineon/mtb-example-pmg1-usbpd-sink).
- Create a new ModusToolbox™ application. In this example, use the Project Creator tool:
- Select the PMG1-CY7110 BSP.
- Select the USBPD Sink application.
- Build the application.
- This generates mtbcfg_ezpd.h and mtbcfg_ezpd.c files in the
<application>/USBPD_CONFIG/TARGET_<kit-name>/GeneratedSource
directory. These files define the PDSTACK Middleware configuration struct
cy_stc_pdstack_port_cfg_t, with the application's default configuration. - Follow the instructions in the application's README.md file for the correct placement of jumpers on the kit, and then program the kit.
- Connect the kit to a power source that supports USB Power Delivery on the USB-PD port, not the USB-C port for KitProg) to a power source (for example, a charger or a laptop) using a USB-C-to-C cable.
- Remember to review the README.md file for proper jumper placement.
- The kit’s LED (LED3 of PMG1-CY7110) should blink at 5 Hz, indicating that the USB-PD operation is working.
-
Launch the EZ-PD™ Configurator for the application that was just created.
- Deselect the PD Operation Enable parameter under Port Information.
- Save the configuration. This updates the mtbcfg_ezpd.c file with the changed configuration.
- Disconnect the power source from the kit, re-program the application, then connect the power source to the kit.
The kit's Debug LED should blink at 1 Hz, indicating that USB-PD operation is not working since it was disabled in step 5.