- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've just acquired a CY8CKIT-062-BLE (Rev D) and have updated to KitProg3 as indicated in the board documentation
I have tried everything I can think of to communicate with the board via CMSIS-DAP in KitProg3 mode. (See details below)
I've deleted Windows drivers under device manager, I've tried a couple of versions of KitProg3 firmware (the one automatically installed by PsoC Programmer and latest via fw-loader from Github. Nothing working.
Any suggestions where to go next - it is almost like my Winusb driver is wrong device Ids or something?
Various attempts:
I have tried openocd supplied in the tools folder of ModusToolBox with the following error:
I've tried PSocProgrammer which fails with "Failed Connect to at 12:38:27 | Can't Open CMSIS-DAP port"
I've tried "Cypress Programmer":
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried a different computer, everything works just fine which rules out a hardware problem.
It turns out that when I remove my HP Zbook-15 G3 from its Thunderbolt docking station, then everything works just fine. So there is something bizzare here where the docking station USB tree causes openocd to fail during the scan for attached device as it looks for the CMSIS-DAP USB instance. I have this workaround for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Almi,
With PSoC Programmer, did you click on the KitProg3 under Port Selection to select that port?
You mentioned using fw-loader, a tool that comes with modustoolbox. That tool can also be used to change the mode in which the kit is communicating.
fw-loader provides some options to change the mode of the KitProg running on the boards.
After starting fw-loader by typing "fw-loader" in Windows Start menu....
Use --device-list to see your device.
Use --mode commands to change your kitprog between four communication modes. Similar to pressing the mode switch on the kit, but gives more mode options.
If these don't work, open Device Manager in Windows and look for the kit. I like to view in Container Mode. See how the kit changes in Device Manager as you change modes using fw-loader. Make sure there are no red or orange indicators in Device Manager noting a potential issue.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greg,
With PSoC Programmer, did you click on the KitProg3 under Port Selection to select that port?
Yes - clicking on this initiates the process of connecting which fails with "Can't open CMSIS-DAP port"
Regarding use of fw-loader tool to list device and change modes, yes - this tool works fine for changing modes but the CMSIS-DAP Kitprog3 connection never connects. either when using SW3 or via tool to select the mode.
Regarding Device Manager, there are no warnings or errors in either Kitprog3 or DAPLink mode. See images:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AlMi,
What Revision of the kit do you have?
There's a Rev letter of the kit on the box and a Rev # of the main board on the bottom of the PCB.
Here's my Device Manager view when kit is in CMSIS-DAP BULK mode
Changing to CMSIS-DAP HID mode (using SW3 Mode Select) then looks like
Finally, switching to CMSIS-DAP view using SW3 Mode Select ...
Here's the views for each mode using fw-loader.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some more notes...
- fw-loader will NOT communicate with the kit if PSoC Programmer is connected to the kit
- After updating KitProg 3 firmware from 1.11.243 to 2.21.1005, the SW3 Mode Select no longer changes the mode of the kit. I then use the command “./fw-loader --mode <mode>” in fw-loader to change between the five modes: 'kp3-hid', 'kp3-bulk', 'kp3-bootloader', 'kp3-daplink', 'kp3-dualuart'.
- While in CMSIS-DAP Bulk mode, I updated firmware using fw-loader from 2.21 to 2.30 using the command “./fw-loader --update-kp3”
- Now SW3 changes modes between DAPLink CMSIS-DAP and CMSIS-DAP Bulk. PSoC Programmer will NOT communicate when kit is in DAPLink CMSIS-CAP mode.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greg,
What Revision of the kit do you have?
There's a Rev letter of the kit on the box and a Rev # of the main board on the bottom of the PCB.
The Rev on the Box is "Rev *D", The PCB label is "Rev 13" and the PCB copper etch itself is "Rev08".
I too am on KitProg3 Version 2.30
What is odd, is that in KitProg3 CMSIS-DAP (BULK) mode my Device manager lists do not mirror what you have...
Yours has "HID-complaint vendor-defined device + USB Input Device", mine has "KitProg3 bridge"
I'll try on a different computer tomorrow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried a different computer, everything works just fine which rules out a hardware problem.
It turns out that when I remove my HP Zbook-15 G3 from its Thunderbolt docking station, then everything works just fine. So there is something bizzare here where the docking station USB tree causes openocd to fail during the scan for attached device as it looks for the CMSIS-DAP USB instance. I have this workaround for now.