[riot-notifications] [RIOT-OS/RIOT] board/sltb001a: cannot flash with JLink when 'hello-world' is running and no error (#11059)

Gaƫtan Harter notifications at github.com
Mon Feb 25 13:43:39 CET 2019


The board can still correctly be reset when in the "broken" state.

I manage to get an error code by adding

```diff
diff --git a/dist/tools/jlink/jlink.sh b/dist/tools/jlink/jlink.sh
index 2e24ae660..790631327 100755
--- a/dist/tools/jlink/jlink.sh
+++ b/dist/tools/jlink/jlink.sh
@@ -164,6 +164,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}' \
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11059#issuecomment-466997541
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190225/8ddbadb1/attachment.html>


More information about the notifications mailing list