Support hla_serial command for ST-LINK adapters.
The hla_serial command allows for a programming device serial number to be specified in addition to USB VID/PID. This allows for multiple ST-LINK/V2 programmers to be attached to a single machine and operated using openocd. Change-Id: I350654bf676eb26ba3a90450acfa55d2a5d2d791 Signed-off-by: Austin Phillips <austin_phillips@hotmail.com> Reviewed-on: http://openocd.zylin.com/2198 Tested-by: jenkins Reviewed-by: Martin Glunz <mg@wunderkis.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
3a4ec66b24
commit
7568a91c8e
@@ -2099,7 +2099,7 @@ static int aice_usb_open(struct aice_port_param_s *param)
|
||||
const uint16_t pids[] = { param->pid, 0 };
|
||||
struct jtag_libusb_device_handle *devh;
|
||||
|
||||
if (jtag_libusb_open(vids, pids, &devh) != ERROR_OK)
|
||||
if (jtag_libusb_open(vids, pids, NULL, &devh) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
|
||||
/* BE ***VERY CAREFUL*** ABOUT MAKING CHANGES IN THIS
|
||||
@@ -2123,7 +2123,7 @@ static int aice_usb_open(struct aice_port_param_s *param)
|
||||
/* reopen jlink after usb_reset
|
||||
* on win32 this may take a second or two to re-enumerate */
|
||||
int retval;
|
||||
while ((retval = jtag_libusb_open(vids, pids, &devh)) != ERROR_OK) {
|
||||
while ((retval = jtag_libusb_open(vids, pids, NULL, &devh)) != ERROR_OK) {
|
||||
usleep(1000);
|
||||
timeout--;
|
||||
if (!timeout)
|
||||
|
||||
Reference in New Issue
Block a user