mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-25 02:32:41 +03:00
19 lines
328 B
Bash
19 lines
328 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
source $(dirname $0)/../target.sh
|
||
|
|
||
|
lscript=/tmp/flash$$.jlink
|
||
|
|
||
|
cat >$lscript <<EOF
|
||
|
h
|
||
|
r
|
||
|
loadfile outdir/$BOARD/zephyr.bin $BASE_BOOT
|
||
|
loadfile hello.signed.bin $BASE_PRIMARY_SLOT
|
||
|
loadfile shell.signed.bin $BASE_SECONDARY_SLOT
|
||
|
q
|
||
|
EOF
|
||
|
|
||
|
JLinkExe -device $SOC -si SWD -speed auto \
|
||
|
-CommanderScript $lscript
|
||
|
rm $lscript
|