From 608640858d0d02ac06fca22aa3b9db9c89733adb Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 5 Nov 2022 20:53:23 -0700 Subject: [PATCH] This is what I'm using locally for flashing samd21 parts Signed-off-by: Keith Packard --- ao-tools/ao-flash/ao-flash-samd21 | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ao-tools/ao-flash/ao-flash-samd21 b/ao-tools/ao-flash/ao-flash-samd21 index 1b3dc87b..f20d526d 100755 --- a/ao-tools/ao-flash/ao-flash-samd21 +++ b/ao-tools/ao-flash/ao-flash-samd21 @@ -7,16 +7,13 @@ case "$#" in exit 1 ;; esac - -openocd \ - -f interface/stlink.cfg \ - -c 'transport select hla_swd' \ - -c 'set CPUTAPID 0x0bc11477' \ - -f target/at91samdXX.cfg \ - -c 'adapter speed 10' \ - -c init \ - -c 'reset init' \ - -c 'at91samd bootloader 0' \ - -c 'reset init' \ - -c "program $1" \ - -c "shutdown" +openocd -f interface/stlink.cfg \ + -c 'transport select hla_swd' \ + -c 'set CHIPNAME at91samd21g18' \ + -c 'set CPUTAPID 0x0bc11477' \ + -f target/at91samdXX.cfg \ + -c init \ + -c 'reset halt' \ + -c 'at91samd bootloader 0' \ + -c "flash write_image erase unlock $1" \ + -c "shutdown" -- 2.30.2