[<<][openocd][>>][..]
Mon Apr 13 18:16:27 EDT 2020

specifying usb location for openocd

I want to distinguish stlink by USB port.

Start looking here:

openocd/src/jtag/drivers/libusb_helper.c
static bool jtag_libusb_location_equal(libusb_device *device)

openocd/src/jtag/drivers/jtag_usb_common.c
bool jtag_usb_location_equal(uint8_t dev_bus, uint8_t *port_path,
			     size_t path_len)


EDIT: See next post.  Use serial number.  It's just weird for stlink
and doesn't show up properly as UTF string.




[Reply][About]
[<<][openocd][>>][..]