blob: a2c58c750e28b9dcdf16d2eb5f42c06d93a5bfd3 [file] [log] [blame]
David Brown22a6fe32017-01-10 10:40:43 -07001#! /bin/bash
2
3source $(dirname $0)/../target.sh
4
5lscript=/tmp/flash$$.jlink
6
7cat >$lscript <<EOF
8h
9r
10loadfile outdir/$BOARD/zephyr.bin $BASE_BOOT
David Vincze2d736ad2019-02-18 11:50:22 +010011loadfile hello.signed.bin $BASE_PRIMARY_SLOT
12loadfile shell.signed.bin $BASE_SECONDARY_SLOT
David Brown22a6fe32017-01-10 10:40:43 -070013q
14EOF
15
16JLinkExe -device $SOC -si SWD -speed auto \
17 -CommanderScript $lscript
18rm $lscript