Import EZ-PD Configuration Utility C-source

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm trying to use the EZ-PD configuration utility to generate the .c config file to use in PSoC 3.3 for programming a CCG2 over SWD w/ MiniProg3.

The API guide says the following...

3. Use the EZ-PD Configuration Utility to build the configuration table, and copy the generated C source file into the Creator

project if necessary. The configuration table can also be updated by editing the usbpd_config.c file in PSoC Creator Source

Editor.

3.1. The configuration table is part of bootloader project. Build bootloader project using the PSoC Creator.

I have generated the config table in .c format, but I am stuck on how to import it correctly in the PSoC Creator project. That files calls a "pd.h", which I have not found anywhere and has functions that do not exist in any other header files. There is a note in the generated configuration table .c file that says...

     "The config table should be placed in the "configSection" so that the update tools can correctly retrieve the data."

Does this mean it should be placed in the config folder in the power_adapter tree? I don't see configSection anywhere else; the config folder is the closest I see to that.

I have also tried just replacing the configuration table in the power_adapter config.c file with the newly generated one, but that did not seem to work.

Any help is appreciated, thanks.

0 Likes
1 Solution

Hi Andrew,

You need re-build cc_boot-pa project after update usbpd_config.c. The cc_boot-pa project is not opened in Creator project, you have to add it into project manually. You can find the project under folder shows as below. You can get the elf and hex files which was generated by cc_boot-pa project under folder: ...\CCG2_SDK_2134\CYPD2134-24LQXI_power_adapter\CYPD2134-24LQXI_power_adapter.cydsn\cc_boot-pa.cydsn\CortexM0\ARM_GCC_493\Debug

pastedImage_0.png

After re-build this project, you need go to CYPD2134-24LQXI_power_adapter project, and click TopDesign.cywk. You can find the bootloadable component and update the elf and hex files which was generated by cc_boot-pa project above.

pastedImage_1.png

And then, you can re-build the CYPD2134-24LQXI_power_adapter project to get the HEX file under folder:...\CYPD2134-24LQXI_power_adapter\CYPD2134-24LQXI_power_adapter.cydsn\CortexM0\ARM_MDK_Generic\Debug

Best Regards,

Lisa

View solution in original post

0 Likes
7 Replies