From: Xiaofan C. <xia...@gm...> - 2021-07-21 10:09:19
|
On Wed, Jul 21, 2021 at 4:50 PM Xiaofan Chen <xia...@gm...> wrote: > > On Tue, Jul 20, 2021 at 9:30 PM R. Diez via OpenOCD-user > <ope...@li...> wrote: > > Unfortunately, I am still at a loss regarding the ST-Link V2. That is no > > composite device, so your suggestion wouldn't help in that case. > > > > Take note ST-Link V2 is a USB Composite Device. > > You have an option for the following two. > 1) Debug (WinUSB.sys) + Virtual Com Ports (usbser.sys) > 2) Debug (WinUSB.sys) + Virtual Com Ports (usbser.sys) + USB Mass Storage > > In my test, I choose to go with Option 1. I do not see the difference > if using Option 2. > > And I do not need to use WinUSB driver to replace the USB > Composite Parent. It just works with ST's default driver. > And you say it is a ST-Link V2 clone, what is the device configuration? If you have access to Linux, you can post the output of "lsusb -vvv" about your clone. If you encountered a problem like this, you may want to follow the instructions here to see if that helps, which is to use WinUSB as the driver for the USB Composite Device. https://github.com/ntfreak/openocd/blob/master/README.Windows -- Xiaofan |