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 |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame^] | 11 | loadfile hello.signed.bin $BASE_PRIMARY_SLOT |
| 12 | loadfile shell.signed.bin $BASE_SECONDARY_SLOT |
David Brown | 22a6fe3 | 2017-01-10 10:40:43 -0700 | [diff] [blame] | 13 | q |
| 14 | EOF |
| 15 | |
| 16 | JLinkExe -device $SOC -si SWD -speed auto \ |
| 17 | -CommanderScript $lscript |
| 18 | rm $lscript |