"Theo de Raadt" <dera...@openbsd.org> wrote:
> Josuah Demangeon <m...@josuah.net> wrote:
> > 
> > The author majbthrd also says all CMSIS-DAP adapters should provide
> > "CMSIS-DAP" somewhere in the product string as a way to detect them
> > if wanted.
> 
> Devices are not detected by the string.  The vendor/product is used
> instead.
> 
> Though I guess who knows what kind of bullshit could happen with libusb
> code...

Thank you for your confirmation.

I checked for curiosity: it is happening at OpenOCD-level, and
provided by the device itself: nothing involving the kernel.

https://repo.or.cz/openocd.git/blob/HEAD:/src/jtag/drivers/cmsis_dap_usb_bulk.c#l201

        ...
        /* Search for "CMSIS-DAP" in the interface string *
        ...
        } else if (strstr(interface_str, "CMSIS-DAP")) {
        ...

Reply via email to