ao-tools/ao-flash: Use 'program' instead of 'flash' for samd21
authorKeith Packard <keithp@keithp.com>
Sun, 19 Feb 2023 00:51:09 +0000 (16:51 -0800)
committerKeith 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

index f20d526db81e37bcfe7236cb935ab4d238d1480b..af51ab7a46f21eb6981bd0a7cf81da336e787974 100755 (executable)
@@ -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"