From: Keith Packard Date: Sun, 6 Nov 2022 03:53:23 +0000 (-0700) Subject: This is what I'm using locally for flashing samd21 parts X-Git-Tag: 1.9.13~1^2~26^2~51 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=608640858d0d02ac06fca22aa3b9db9c89733adb This is what I'm using locally for flashing samd21 parts Signed-off-by: Keith Packard --- 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"