From: Spencer Oliver Date: Fri, 12 Apr 2013 12:10:35 +0000 (+0100) Subject: program: do not poll target after reset run X-Git-Tag: v0.7.0-rc1~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f0e9c8ad2c67ee459a5ab8736679f40d46ef7d9;p=openocd program: do not poll target after reset run Disable polling the target before we issue a 'reset run'. This stops errors or warnings if the target disables the SWD or JTAG interface as part of the application code. Change-Id: I5019dffdad41a8e210003ece1caf89069ee0f223 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1331 Tested-by: jenkins --- diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index 82959c8a..7b2b4a4a 100644 --- a/src/flash/startup.tcl +++ b/src/flash/startup.tcl @@ -54,6 +54,8 @@ proc program {filename args} { if {[info exists reset]} { # reset target if requested + # also disable target polling, we are shutting down anyway + poll off echo "** Resetting Target **" reset run }