| David Brown | 22a6fe3 | 2017-01-10 10:40:43 -0700 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |||||
| 3 | source $(dirname $0)/../target.sh | ||||
| 4 | |||||
| 5 | lscript=/tmp/flash$$.jlink | ||||
| 6 | |||||
| 7 | cat >$lscript <<EOF | ||||
| 8 | h | ||||
| 9 | r | ||||
| 10 | loadfile outdir/$BOARD/zephyr.bin $BASE_BOOT | ||||
| 11 | loadfile hello.signed.bin $BASE_SLOT0 | ||||
| 12 | loadfile shell.signed.bin $BASE_SLOT1 | ||||
| 13 | q | ||||
| 14 | EOF | ||||
| 15 | |||||
| 16 | JLinkExe -device $SOC -si SWD -speed auto \ | ||||
| 17 | -CommanderScript $lscript | ||||
| 18 | rm $lscript | ||||