diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2013-04-11 11:15:32 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-04-17 09:52:25 +0000 |
commit | b2189fa93657a8288d2a90c92814d64bf25425b3 (patch) | |
tree | 933949a2afde12fe87df8c3775f1c17cb3ff4300 /src/jtag/hla/hla_interface.h | |
parent | 0a33b7b2aa25b8eba53c9097ac2c92c5be7f0227 (diff) | |
download | riscv-openocd-b2189fa93657a8288d2a90c92814d64bf25425b3.zip riscv-openocd-b2189fa93657a8288d2a90c92814d64bf25425b3.tar.gz riscv-openocd-b2189fa93657a8288d2a90c92814d64bf25425b3.tar.bz2 |
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
Diffstat (limited to 'src/jtag/hla/hla_interface.h')
-rw-r--r-- | src/jtag/hla/hla_interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jtag/hla/hla_interface.h b/src/jtag/hla/hla_interface.h index 5b63ab8..980c6d9 100644 --- a/src/jtag/hla/hla_interface.h +++ b/src/jtag/hla/hla_interface.h @@ -46,6 +46,8 @@ struct hl_interface_param_s { enum hl_transports transport; /** */ int max_buffer; + /** */ + bool connect_under_reset; }; struct hl_interface_s { |