blob: 7353dd7cd5f7e50cbb643c1ae02cc66983f3683e [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
11loadfile hello.signed.bin $BASE_SLOT0
12loadfile shell.signed.bin $BASE_SLOT1
13q
14EOF
15
16JLinkExe -device $SOC -si SWD -speed auto \
17 -CommanderScript $lscript
18rm $lscript