<p><b>@fjmolinas</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11562#discussion_r287568757">cpu/kinetis/dist/check-fcfield-bin.sh</a>:</p>
<pre style='color:#555'>> +# unified OpenOCD script (dist/tools/openocd/openocd.sh).
+#
+# Syntax: check-fcfield-hex.sh $HEXFILE
+#
+# @author       Jonas Remmert <j.remmert@phytec.de>
+# @author       Johann Fischer <j.fischer@phytec.de>
+# @author       Joakim NohlgĂ„rd <joakim.nohlgard@eistec.se>
+# @author       Francisco Molina <francisco.molina@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
</pre>
<p>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 <code>fffffffffffffffffffffffffe..ffff</code> then the flash by get blocked and not be writable.</p>
<p>I use <code>IMAGE_OFFSET</code> 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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11562?email_source=notifications&email_token=ABE7WYDQQ4VUZSJDOLCGZHDPXFUILA5CNFSM4HORROP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZWMGXA#discussion_r287568757">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFAZG4L3WGPU22I7I3PXFUILANCNFSM4HORROPQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCBGONRWK25QOER2K3PXFUILA5CNFSM4HORROP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZWMGXA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11562?email_source=notifications\u0026email_token=ABE7WYDQQ4VUZSJDOLCGZHDPXFUILA5CNFSM4HORROP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZWMGXA#discussion_r287568757",
"url": "https://github.com/RIOT-OS/RIOT/pull/11562?email_source=notifications\u0026email_token=ABE7WYDQQ4VUZSJDOLCGZHDPXFUILA5CNFSM4HORROP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZWMGXA#discussion_r287568757",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>