Windows library / console program to update CYPD3120 firmware via USB?

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
OlEr_1999891
Level 5
Level 5
50 replies posted 25 replies posted 25 sign-ins

Hi!

Is there a guide and library / code-example to programatically (not via EZ-PD Configuration Utility) update the firmware of CYPD3120 via USB (Billboard) connected to a Windows and/or Linux host?

And, the HEX-file that the compiler outputs, this has to be turned into an IMG-file right? Any specific Cypress tool to do this or standard Intel Hex2Bin?

Cheers

Olof

0 Likes
1 Solution

Hi Olof,

a) Does it have to be CYPD3120 for this setup to work or does it also work with CYPD3125? Assuming the device is initially programmed using SWD.

>> This have to be CYPD3120, CYPD3119, CYPD3123. As per the information lists on Order information of CCG3 datasheet, those three part number is pre-programmed USB bootloader.

b) Is there a guide to how to do the flashing programmatically over USB HID?

>> We are not documentations based on this, but the USB bootloadering is same use as CY7C6521x on CY4531 board.

c) Is there a Windows console program where it is possible to push new firmware?

>> The only windows console is Ez-PD configuration Utility. Luckily, SDK3.3 will update soon and it will includes USB bootloadering parts.

Best Regards,

Lisa

View solution in original post

0 Likes
5 Replies
ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi Olof,

So far, we have a internal SPEC named HPI and application notes relates on HPI can be refer to,but it is discover under NDA. Please could you contact your local Cypress FAE and get it from him?

No need, PSoC Creator generated .hex format and .cyacd format at same time, you can use .cyacd directly.

Best Regards,

Lisa

0 Likes

Hi Lisa!

We have the NDA and HPI specification, but I was refer to the following configuration option where it is done over D+/D- lines, not via the HPI/EC-interface.

pastedImage_0.png

So, question is:

a) Does it have to be CYPD3120 for this setup to work or does it also work with CYPD3125? Assuming the device is initially programmed using SWD.

b) Is there a guide to how to do the flashing programmatically over USB HID?

c) Is there a Windows console program where it is possible to push new firmware?

In the usb_hid.c we see that there is a HID interface defined to load new firmware, but can't find any good documentation on how to use it programmatically.

Cheers

Olof

Hi Olof,

a) Does it have to be CYPD3120 for this setup to work or does it also work with CYPD3125? Assuming the device is initially programmed using SWD.

>> This have to be CYPD3120, CYPD3119, CYPD3123. As per the information lists on Order information of CCG3 datasheet, those three part number is pre-programmed USB bootloader.

b) Is there a guide to how to do the flashing programmatically over USB HID?

>> We are not documentations based on this, but the USB bootloadering is same use as CY7C6521x on CY4531 board.

c) Is there a Windows console program where it is possible to push new firmware?

>> The only windows console is Ez-PD configuration Utility. Luckily, SDK3.3 will update soon and it will includes USB bootloadering parts.

Best Regards,

Lisa

0 Likes

Ok, great!

Is it possible to manually load a firmware that has USB Boatloader into CYPD3125 using the SWD interface? Or that is not possible?

Cheers

Olof

0 Likes

Hi Olof,

Yes. It can be fresh by SWD programming .

Best Regards,

Lisa

0 Likes