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

Francisco notifications at github.com
Sat May 25 18:44:53 CEST 2019


fjmolinas commented on this pull request.



> +# unified OpenOCD script (dist/tools/openocd/openocd.sh).
+#
+# 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

Its not really about jumping to invalid offsets or not. What we want to do is verify the content of the fcfield, if its over written or has different content than `fffffffffffffffffffffffffe..ffff` then the flash by get blocked and not be writable. 

I use `IMAGE_OFFSET` because when flashing at an offset the the fcfield is not located at the same position so I need to dissasemble different parts of the bin/hex file.

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


More information about the notifications mailing list