SWD-Programming CYPD6125 MiniProg3

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
ChristophG94
Level 1
Level 1
First reply posted First question asked First like given

Hello,
I am currently trying to automate the Programming of a CYPD6125 via SWD.
Using the GUI it works perfectly fine.

In the command line it shows "Device is not in ISSP mode" when I try to Start.

I've seen someone had the same problem in this forum, but there was no solution in the thread.

I use following commands for the setup:
GetPorts
OpenPort "MiniProg3/1839CA00030B" "C:/Program Files (x86)/Cypress/Programmer/"
HEX_ReadFile "K:\\PROJEKTE\\USB-C\\Intel_EHL_CCG6_Fw_v2_0_CYPD6125.hex"
SetProtocol 8  //SWD
SetProtocolConnector 0  //5-Pin-Connector
SetAcquireMode “Reset”
SetProtocolClock 152 //1,6MHz
SetPowerVoltage 3.3
PowerOn
DAP_AcquireChip
Erase //Here the Error Shows

The CLI-User-Guide doesn't really give any further information about the behavior.

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Since CCG6 is a PSoC 4 based part, please try PSoC4_EraseAll command instead of Erase. You can also refer to this thread for a script to program PSoC 4 devices and check if it works for you. Please add your own .hex file path in it and the PowerOn command since you're powering the device through MiniProg3.

Best Regards,
Sananya

View solution in original post

2 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

Since CCG6 is a PSoC 4 based part, please try PSoC4_EraseAll command instead of Erase. You can also refer to this thread for a script to program PSoC 4 devices and check if it works for you. Please add your own .hex file path in it and the PowerOn command since you're powering the device through MiniProg3.

Best Regards,
Sananya

ChristophG94
Level 1
Level 1
First reply posted First question asked First like given

Thank you very much. This worked out well.

0 Likes