mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #11303 from cladmi/pr/jlink/failonerror
jlink.sh: Exit with an error on failure for JLinkExe commands
This commit is contained in:
commit
b381c0b24d
3
dist/tools/jlink/jlink.sh
vendored
3
dist/tools/jlink/jlink.sh
vendored
@ -170,6 +170,7 @@ do_flash() {
|
||||
cat ${RIOTTOOLS}/jlink/reset.seg >> ${BINDIR}/burn.seg
|
||||
# flash device
|
||||
sh -c "${JLINK} ${JLINK_SERIAL} \
|
||||
-ExitOnError 1 \
|
||||
-device '${JLINK_DEVICE}' \
|
||||
-speed '${JLINK_SPEED}' \
|
||||
-if '${JLINK_IF}' \
|
||||
@ -218,6 +219,7 @@ do_reset() {
|
||||
test_serial
|
||||
# reset the board
|
||||
sh -c "${JLINK} ${JLINK_SERIAL} \
|
||||
-ExitOnError 1 \
|
||||
-device '${JLINK_DEVICE}' \
|
||||
-speed '${JLINK_SPEED}' \
|
||||
-if '${JLINK_IF}' \
|
||||
@ -245,6 +247,7 @@ do_term() {
|
||||
trap '' INT
|
||||
# start Jlink as RTT server
|
||||
sh -c "${JLINK} ${JLINK_SERIAL} \
|
||||
-ExitOnError 1 \
|
||||
-device '${JLINK_DEVICE}' \
|
||||
-speed '${JLINK_SPEED}' \
|
||||
-if '${JLINK_IF}' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user