[riot-notifications] [RIOT-OS/RIOT] boards/frdm-kw41z: add riotboot (#11562)

Gaëtan Harter notifications at github.com
Mon May 27 13:19:38 CEST 2019


cladmi commented on this pull request.



> +#
+# Syntax: check-fcfield-hex.sh $HEXFILE
+#
+# @author       Jonas Remmert <j.remmert at phytec.de>
+# @author       Johann Fischer <j.fischer at phytec.de>
+# @author       Joakim Nohlgård <joakim.nohlgard at eistec.se>
+# @author       Francisco Molina <francisco.molina at inria.fr>
+
+if [ $# -ne 1 ]; then
+    echo "Usage: $0 BINFILE"
+    echo "Checks the flash configuration field protection bits to avoid flashing a locked image to a Kinetis MCU (protection against accidental bricking)."
+    exit 2
+fi
+
+if [ -n "${IMAGE_OFFSET}" ]; then
+    FCFIELD=$((${RIOTBOOT_HDR_LEN}+${VTOR_OFFSET}))

No need if we do not check when `IMAGE_OFFSET` is set as you said it https://github.com/RIOT-OS/RIOT/pull/11562#discussion_r287605754

-- 
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/pull/11562#discussion_r287750633
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/4310ca35/attachment.html>


More information about the notifications mailing list