Mon Apr 13 18:16:27 EDT 2020

specifying usb location for openocd

I want to distinguish stlink by USB port.

Start looking here:

static bool jtag_libusb_location_equal(libusb_device *device)

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.