Browse Source

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
tags/v0.7.0-rc1
Spencer Oliver 11 years ago
parent
commit
3f0e9c8ad2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/flash/startup.tcl

+ 2
- 0
src/flash/startup.tcl View File

@@ -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
}


Loading…
Cancel
Save