The git version "fdf17dba5" is not in the history of upstream OpenOCD. Should 
be some MacOsx build... anyway, not a problem so far!

>From the log looks like this adapter 'CMSIS-DAP-MuseLab' has several USB 
>interfaces that confuse the autodiscovery of OpenOCD:

> found product string of 0xc251:0xf001 'CMSIS-DAP-MuseLab'
> enumerating interfaces of 0xc251:0xf001
> found interface 0 string 'CMSIS-DAP CDC'
> skipping interface 0, has only 1 endpoints
> found interface 1 string 'CMSIS-DAP DCI'
> Using CMSIS-DAPv2 interface 1 with wrong class 10 subclass 0 or protocol 0
> Using CMSIS-DAPv2 interface with VID:PID=0xc251:0xf001, serial=0001A0000001
> CMSIS-DAP command CMD_INFO failed.

OpenOCD looks for a valid USB interface which descriptor starts with 
"CMSIS-DAP".
Here it seams using the "CMSIS-DAP DCI" which is probably incorrect.
Can you post the complete output of "lsusb -v -d c251:f001"? It will help 
identify the right interface number and will be kept as another reference dump 
for cmsis-dap devices.
Then, adding in your configuration the command "cmsis_dap_usb interface <num>" 
should work.
 It could also help creating a dedicated config file for this interface!


---

** [tickets:#327] can't connect cmsis-dap v2 device. **

**Status:** new
**Milestone:** 0.11.0
**Created:** Mon Dec 20, 2021 09:29 AM UTC by Qinfeng Chen
**Last Updated:** Mon Dec 20, 2021 09:29 AM UTC
**Owner:** OpenOCD-Gerrit
**Attachments:**

- [log.txt](https://sourceforge.net/p/openocd/tickets/327/attachment/log.txt) 
(8.8 kB; text/plain)


Version: Open On-Chip Debugger 0.11.0+dev-00542-gfdf17dba5 (2021-12-17-19:05)
Env: MacOsx 11.6 intel version.
description: can't connect cmsis-dap v2 device. 
detail: see the trace log below.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to