From 213bb501970370d16642c2fc3f5bd9c0a5f9aadb Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 18 Feb 2023 16:51:09 -0800 Subject: [PATCH] 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 --- ao-tools/ao-flash/ao-flash-samd21 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2