]> git.sur5r.net Git - openocd/commit
stlink: fix connect under reset issues
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 11 Apr 2013 10:15:32 +0000 (11:15 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 17 Apr 2013 09:52:25 +0000 (09:52 +0000)
commitb2189fa93657a8288d2a90c92814d64bf25425b3
tree933949a2afde12fe87df8c3775f1c17cb3ff4300
parent0a33b7b2aa25b8eba53c9097ac2c92c5be7f0227
stlink: fix connect under reset issues

We need to make sure that srst is asserted before we attempt to switch into
jtag or swd mode otherwise we receive a error (-9) - invalid device id.

Change-Id: I625166c751cfba8e8a5290f40122bb9afc9dbb39
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1315
Tested-by: jenkins
src/jtag/drivers/stlink_usb.c
src/jtag/hla/hla_interface.c
src/jtag/hla/hla_interface.h