Browse Source

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>
tags/v0.9.0
Paul Fertser 6 years ago
parent
commit
c3976ac658
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/jtag/drivers/stlink_usb.c

+ 1
- 1
src/jtag/drivers/stlink_usb.c View File

@@ -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…
Cancel
Save