From: Keith Packard Date: Sun, 19 Feb 2023 00:51:09 +0000 (-0800) Subject: ao-tools/ao-flash: Use 'program' instead of 'flash' for samd21 X-Git-Tag: 1.9.15~1^2~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=213bb501970370d16642c2fc3f5bd9c0a5f9aadb ao-tools/ao-flash: Use 'program' instead of 'flash' for samd21 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 --- diff --git a/ao-tools/ao-flash/ao-flash-samd21 b/ao-tools/ao-flash/ao-flash-samd21 index f20d526d..af51ab7a 100755 --- 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"