Skip to content

Commit

Permalink
openocd: return error if flashing went wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jul 27, 2016
1 parent 5c37377 commit 8601285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/tools/openocd/openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ do_flash() {
${OPENOCD_PRE_VERIFY_CMDS} \
-c 'verify_image \"${HEXFILE}\"' \
-c 'reset run' \
-c 'shutdown'"
-c 'shutdown'" &&
echo 'Done flashing'
}

Expand Down Expand Up @@ -182,7 +182,7 @@ do_flash_elf() {
${OPENOCD_PRE_VERIFY_CMDS} \
-c 'verify_image \"${ELFFILE}\"' \
-c 'reset run' \
-c 'shutdown'"
-c 'shutdown'" &&
echo 'Done flashing'
}

Expand Down

0 comments on commit 8601285

Please sign in to comment.