# start programming phase
echo "** Programming Started **"
+ set filename \{$filename\}
if {[info exists address]} {
set flash_args "$filename $address"
} else {
if {[info exists reset]} {
# reset target if requested
- # also disable target polling, we are shutting down anyway
- poll off
+ if {$exit == 1} {
+ # also disable target polling, we are shutting down anyway
+ poll off
+ }
echo "** Resetting Target **"
reset run
}