jtag/drivers/stlink: fix SRST issue with stlink-v1
Even though the latest firmware version for stlink-v1 supports "v2" JTAG API, the hardware SRST handling is still broken; amend the check accordingly. Change-Id: I62c662cd7aa209d2d6e9fe260f5c0be81d0ce672 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2761 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
parent
45eef3c23d
commit
c3976ac658
|
@ -974,7 +974,7 @@ static int stlink_usb_assert_srst(void *handle, int srst)
|
|||
|
||||
assert(handle != NULL);
|
||||
|
||||
if (h->jtag_api == STLINK_JTAG_API_V1)
|
||||
if (h->version.stlink == 1)
|
||||
return ERROR_COMMAND_NOTFOUND;
|
||||
|
||||
stlink_usb_init_buffer(handle, h->rx_ep, 2);
|
||||
|
|
Loading…
Reference in New Issue