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

Francisco notifications at github.com
Sat May 25 18:50:43 CEST 2019


fjmolinas 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}))

So declare another "firmware_offset_inside_the_binary" variable which in this case would be `RIOTBOOT_HDR_LEN`, were would be the adecuate place to define this?

-- 
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_r287568961
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190525/a70320e0/attachment.html>


More information about the notifications mailing list