Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

NaMe_2085021
New Contributor II

Hi,

Please help me.

I'm new to embedded programming

In my own project I use controller CYPD3120 and want update firmware with help USB Bootloader.

For write my firmware I use IDE PSoC Creator 4.3.

I use components USBFS and Bootloader. After Generate Aplication I get two errors:

1. ADD: sdb.M0059: error: Error in component: USBFS_1. The USBFS_v3_20 component (USBFS_1) is not compatible with the selected device. Please check the component datasheet for details on updating to a compatible component.

2. Error: fit.M0050: The fitter aborted due to errors, please address all errors and rebuild. (App=cydsfit)

I did everything according to the instructions in this documentation:

https://www.cypress.com/file/45376/download

You can view my schematic in attach. This  will use for control stepper motors.

Thank you!

0 Likes
1 Solution
Sananya_14
Moderator
Moderator

Hi,

For CYPD3120, please refer to the example firmware from https://www.cypress.com/documentation/software-and-drivers/ez-pd-sdk-v302-ccg2-all-applications-ccg3... since by default it is a DP dongle part.

For customizing the firmware, please use PSoC Creator 3.3 SP2 from the link- https://www.cypress.com/documentation/software-and-drivers/psoc-creator-software-archive

The firmware already has a bootloadable component with the USB bootloader so you dont need to add any additional components for updating the firmware using USB. The HID interface enabled by the bootloader will allow you to upgrade the firmware using the EZ-PD Configuration Utility.

Best Regards,

Sananya

View solution in original post

10 Replies
Sananya_14
Moderator
Moderator

Hi,

For CYPD3120, please refer to the example firmware from https://www.cypress.com/documentation/software-and-drivers/ez-pd-sdk-v302-ccg2-all-applications-ccg3... since by default it is a DP dongle part.

For customizing the firmware, please use PSoC Creator 3.3 SP2 from the link- https://www.cypress.com/documentation/software-and-drivers/psoc-creator-software-archive

The firmware already has a bootloadable component with the USB bootloader so you dont need to add any additional components for updating the firmware using USB. The HID interface enabled by the bootloader will allow you to upgrade the firmware using the EZ-PD Configuration Utility.

Best Regards,

Sananya

View solution in original post

NaMe_2085021
New Contributor II

Thank you!

When I connect with help SWD interface by MiniProg3, I can't use debug. Why?

0 Likes
Sananya_14
Moderator
Moderator

Hi,

Please let us know the error you get while debugging? For using SWD debugging, please use the 'noboot' project in the same workspace for the CYPD3120-40LQXI_dp_dongle project.

Best Regards,

Sananya

0 Likes
NaMe_2085021
New Contributor II

Thank you!

Can I update firmware with help SWD interface?

0 Likes
NaMe_2085021
New Contributor II

I wanted to update the firmware using the EZ-PD Configuration Utility. I used a USB type A to USB type C cable and got a problem, my PC does not see the CYPD3020 device. Please tell, what is the problem?

0 Likes
Sananya_14
Moderator
Moderator

Hello,

Yes, SWD interface can be used for firmware update.

When you connect the device, is the device not enumerating at all in the device manager? Please ensure the CCG_BB_ENABLE, FLASHING_MODE_USB_ENABLE macros are set to 1 in the firmware. Please also check if the Billboard configuration parameters are correctly defined in your configuration file on the EZ-PD Configuration Utility.

Best Regards,

Sananya

0 Likes
NaMe_2085021
New Contributor II

Hi,

When I connect MiniProg 3,  the device is enumerating in the device manager, but if I disconnect MiniProg 3, the device is not enumerating in the device manager.

Please tell me why this is happening?

0 Likes
Sananya_14
Moderator
Moderator

Hi,

-Could you please confirm what LEDs are glowing on your board when you dont have the MiniProg3 connected? Please check if you are shorting VDDIO and VDDD. You may also not pull up XRES since it is already pulled up to VDDIO internally. We recommend connecting the decoupling capacitors as shown in Figure 13 of the datasheet.

-Please note that the AUX pins are routed to SBU pins in this firmware and you will have to modify the configuration in the firmware to use AUX_P for any other purpose.

-Please confirm if you tried programming the .hex from the SDK using MiniProg3 before the enumeration issue.

Best Regards,

Sananya

NaMe_2085021
New Contributor II

Hello,


1. If you follow the attached diagram, the following LEDs light up: D5 and D6.

2. Please help me to do this.

3. I confirm.

With best regards Nazar Melnichek

0 Likes
NaMe_2085021
New Contributor II

Hi Sananya,

I forgot connect VDDIO and VDDD.

Thank you very much for your help.

Best regards,

Nazar Melnichek

0 Likes