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:
parent
5c373776b3
commit
8601285b13
4
dist/tools/openocd/openocd.sh
vendored
4
dist/tools/openocd/openocd.sh
vendored
@ -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'
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user