aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-04-12 13:10:35 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-04-17 09:52:40 +0000
commit3f0e9c8ad2c67ee459a5ab8736679f40d46ef7d9 (patch)
tree888dce001d538fbbb9a99d422a8206d1d8fe4e88
parentb2189fa93657a8288d2a90c92814d64bf25425b3 (diff)
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 <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1331 Tested-by: jenkins
-rw-r--r--src/flash/startup.tcl2
1 files changed, 2 insertions, 0 deletions
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
}