2017-01-11 01:40:43 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
source $(dirname $0)/../target.sh
|
|
|
|
|
|
|
|
lscript=/tmp/flash$$.jlink
|
|
|
|
|
|
|
|
cat >$lscript <<EOF
|
|
|
|
h
|
|
|
|
r
|
|
|
|
loadfile outdir/$BOARD/zephyr.bin $BASE_BOOT
|
2019-02-18 18:50:22 +08:00
|
|
|
loadfile hello.signed.bin $BASE_PRIMARY_SLOT
|
|
|
|
loadfile shell.signed.bin $BASE_SECONDARY_SLOT
|
2017-01-11 01:40:43 +08:00
|
|
|
q
|
|
|
|
EOF
|
|
|
|
|
|
|
|
JLinkExe -device $SOC -si SWD -speed auto \
|
|
|
|
-CommanderScript $lscript
|
|
|
|
rm $lscript
|