This is an automated email from Gerrit. Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5410
-- gerrit commit f4dce6998c06c9cec161704a7650e9c166bb25af Author: Antonio Borneo <borneo.anto...@gmail.com> Date: Wed Sep 25 16:52:06 2019 +0200 stlink: do not replicate the reset, already done opening adapter For the way stlink code is implemented, the initial reset for attach under reset is sent by the function that opens the adapter. Remove then the duplicated code, avoiding resetting the target twice. Change-Id: I0ba154c104fadbe20fbf2f61f15e4854166afc62 Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com> diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c index e1dd05e..3fbae00 100644 --- a/src/jtag/drivers/stlink_usb.c +++ b/src/jtag/drivers/stlink_usb.c @@ -3219,18 +3219,6 @@ static int stlink_dap_op_connect(struct adiv5_dap *dap) LOG_INFO("stlink_dap_op_connect(%sconnect)", dap->do_reconnect ? "re" : ""); - /* Check if we should reset srst already when connecting, but not if reconnecting. */ - if (!dap->do_reconnect) { - enum reset_types jtag_reset_config = jtag_get_reset_config(); - - if (jtag_reset_config & RESET_CNCT_UNDER_SRST) { - if (jtag_reset_config & RESET_SRST_NO_GATING) - adapter_assert_reset(); - else - LOG_WARNING("\'srst_nogate\' reset_config option is required"); - } - } - dap->do_reconnect = false; dap_invalidate_cache(dap); -- _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel