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
This commit is contained in:
Spencer Oliver 2013-04-12 13:10:35 +01:00
parent b2189fa936
commit 3f0e9c8ad2
1 changed files with 2 additions and 0 deletions

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
}