Add option to not reset board on connect
authorMichael Pratt <michael@pratt.im>
Wed, 6 Mar 2013 20:24:15 +0000 (15:24 -0500)
committerMichael Pratt <michael@pratt.im>
Sun, 18 Aug 2013 18:44:58 +0000 (14:44 -0400)
commit596fb35916ef2f1da8b817fa4b6e365e71c0fc5a
tree944bbb8b11a59438c580cd77f42ad9b5053fbf40
parentde7d1c37ae3edb2c51c136de0e25add1ba96e5d0
Add option to not reset board on connect

'-n' in st-util will cause it to skip the reset step, and thus allow you
to begin debugging at whatever point the code may currently be at.

Adding this feature required changing the stlink_open functions to
accept a reset flag that tells them whether or not to reset after
connecting.  Skipping reset does not seem to have any adverse effects on
stlink usb devices.  Unfortunately, I have to stlink v1 devices to test.
flash/main.c
gdbserver/gdb-server.c
src/st-term.c
src/stlink-sg.c
src/stlink-sg.h
src/stlink-usb.c
src/stlink-usb.h
src/test_sg.c
src/test_usb.c