diff options
| author | JF <jf@codingfield.com> | 2021-03-07 20:29:59 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2021-03-07 20:29:59 (GMT) |
| commit | 5cd4b36d6bbf22095e0ff54aa3773febc6e1f22e (patch) | |
| tree | eac51e42451d827c30fd6572b377c5bbf03f0e24 /tools/mcuboot/flash.sh | |
| parent | b89c92b71d82b4e3bf612519a5cf9b2f12886168 (diff) | |
| parent | e63596b291f973cdeb01cd0ac276861895bd4489 (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'tools/mcuboot/flash.sh')
| -rw-r--r-- | tools/mcuboot/flash.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/mcuboot/flash.sh b/tools/mcuboot/flash.sh new file mode 100644 index 0000000..a2c58c7 --- /dev/null +++ b/tools/mcuboot/flash.sh @@ -0,0 +1,18 @@ +#! /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 |
