projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c716111
)
ao-tools/ao-flash: Use 'program' instead of 'flash' for samd21
author
Keith Packard
<keithp@keithp.com>
Sun, 19 Feb 2023 00:51:09 +0000
(16:51 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sun, 19 Feb 2023 00:51:09 +0000
(16:51 -0800)
Switch to the program command, which has a 'reset' option, to get the
device back to running after loading the boot loader.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-flash/ao-flash-samd21
patch
|
blob
|
history
diff --git
a/ao-tools/ao-flash/ao-flash-samd21
b/ao-tools/ao-flash/ao-flash-samd21
index f20d526db81e37bcfe7236cb935ab4d238d1480b..af51ab7a46f21eb6981bd0a7cf81da336e787974 100755
(executable)
--- a/
ao-tools/ao-flash/ao-flash-samd21
+++ b/
ao-tools/ao-flash/ao-flash-samd21
@@
-15,5
+15,5
@@
openocd -f interface/stlink.cfg \
-c init \
-c 'reset halt' \
-c 'at91samd bootloader 0' \
- -c "
flash write_image erase unlock $1
" \
+ -c "
program $1 verify reset
" \
-c "shutdown"