1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

openocd: return error if flashing went wrong

This commit is contained in:
Kaspar Schleiser 2015-04-30 21:22:37 +02:00
parent 5c373776b3
commit 8601285b13

View File

@ -152,7 +152,7 @@ do_flash() {
${OPENOCD_PRE_VERIFY_CMDS} \
-c 'verify_image \"${HEXFILE}\"' \
-c 'reset run' \
-c 'shutdown'"
-c 'shutdown'" &&
echo 'Done flashing'
}
@ -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'
}