OpenOCD for Cypress CCG3PA?

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
drewfustini
Level 3
Level 3
10 replies posted 10 sign-ins 5 replies posted

Hello, I noticed that support has been added for CCG6DF to src/flash/nor/psoc4.c:

 

commit 1ec8dc3fb0cd5b5fc1d71470b211a1a05efc70b9
Author: Volodymyr Medvid <vmed@cypress.com>
Date:   Mon Aug 31 14:42:43 2020 +0300

    Add Cypress modifications for OpenOCD 4.1

diff --git a/src/flash/nor/psoc4.c b/src/flash/nor/psoc4.c
index 48913f1d3e52..405d452cdd32 100644
--- a/src/flash/nor/psoc4.c
+++ b/src/flash/nor/psoc4.c
@@ -254,6 +254,8 @@ const struct psoc4_chip_family psoc4_families[] = {
        { 0xB5, "PSoC 4100S Plus",                      .flags = 0, .spcif_ver = spcif_v3 },
        { 0xB8, "PSoC 4100S Plus/PSoC 4500",            .flags = 0, .spcif_ver = spcif_v3 },
        { 0xBE, "PSoC 4100S Max",                       .flags = 0, .spcif_ver = spcif_v3 },
+       { 0xC0, "CCG6DF USB Type-C Port Controller",    .flags = 0, .spcif_ver = spcif_v3 },
+       { 0xC3, "CCG6SF USB Type-C Port Controller",    .flags = 0, .spcif_ver = spcif_v3 },
        { 0,    "Unknown",                              .flags = 0, .spcif_ver = spcif_unknown }
 };

 


I would like to program a CCG3PA part (CYPD3171-24LQXQ) using OpenOCD.  I have the MiniProg3, MiniProg4 and J-Link which I could use for the task.  I read the "CCGx (CYPDxxxx) Programming Specifications" PDF, and I am hoping that the support for CCG6DF might be able to be extended to support CCG3PA.

 
I am looking right now at how I could modify OpenOCD to do that, and I would very much appreciate any advice or insights you might be able to offer in regards to that.

Thank you!
Drew
0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored
2 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Drew,

Please refer to the similar thread-https://community.cypress.com/t5/USB-EZ-PD-Type-C/KP3-REQUEST-ACQUIRE-in-Kitprog3-Miniprog4-firmware...

Best Regards,
Sananya

ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

Hi ,

After confirmed with OPENOCD of Cypress developer and re-produced this issue with MiniProg3/4 and CY4532 board. We have to say that Cypress OpenOCD command-line interface (CLI) is not supporting CCGx devices currently. We are strongly recommend you use PSoC Programmer with MiniProg3/4 for SWD programming of CCGx Device. Or the third party of programmer have verified by Cypress/IFX could find out from the link:

 https://www.cypress.com/products/device-programmer-system-partners

 

Thank you for your understanding.

Best Regards,

Lisa

0 Likes