CCG3PA Programming over SWD

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
SaBh_294166
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

Hi. We will be using a CCG3PA in our design. Also wanting to have the ability to program a fresh PCBA over SWD either at the factory or when out in the field. We understand SWD specifications enough to write the R/W routines. However, we believe we are re-inventing the wheel here.

1) Are the details on how the PC communicates over USB with your miniprog3 available to the public? Available under NDA? These details would allow us to use the Cypress s/w tools to flash our hardware design over SWD.

2) Is the USB to SWD miniprog3 bridge available in source code format to the public? Available under NDA?

Plan B is to start coding our own solution asap. This widget will be used strictly for flashing the CCG3PA and not for debugging. The use of the reflashing over CC lines is still too high of a risk for our product roadmap and also demands that a bootloader be applied using SWD first. Prefer that each widget have the ability to flash over SWD.

Thanks in advance.

0 Likes
1 Solution
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

I believe this document can answer your questions:

https://www.cypress.com/documentation/programming-specifications/cypdxxxx-programming-specifications

In the meantime, if you have installed PSoC Programmer, you can find example source code in:

C:\Program Files (x86)\Cypress\Programmer\Examples\Programming\PSoC4\SWD

Regards,

Eddie

View solution in original post

0 Likes
4 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

I believe this document can answer your questions:

https://www.cypress.com/documentation/programming-specifications/cypdxxxx-programming-specifications

In the meantime, if you have installed PSoC Programmer, you can find example source code in:

C:\Program Files (x86)\Cypress\Programmer\Examples\Programming\PSoC4\SWD

Regards,

Eddie

0 Likes

Hi Eddie. Thank you for your reply. We are using the same document to understand the low level timing for the SWD interface used to R/W with the CCG3PA. However, we do not believe this document offers the details on the USB API used by the Cypress tools.

We are after the commands, formats used by their software (API) that will allow for our end hardware to be used transparently with the existing Cypress software prorgamming tools.

Would you have such information?

0 Likes
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

Please refer to my prior reply. The example source code to program CCG3PA using API is included in PSoC Programmer, you can find them in this path:

C:\Program Files (x86)\Cypress\Programmer\Examples\Programming\PSoC4\SWD

The relating document is contain in: C:\Program Files (x86)\Cypress\Programmer\Documents

Regards,

Eddie

0 Likes
SaBh_294166
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

Thank you for the clarifications Eddie. The information is helpful to the project.

0 Likes