X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-flash%2Fao-flash-samd21;h=f20d526db81e37bcfe7236cb935ab4d238d1480b;hb=b4960336c0ae960bee40fdd337e58fcc8846ac87;hp=1b3dc87bce342491eb0e3cfea66640bad4572f2a;hpb=c4a63617f0eb825a295ae8ee1ee0caf4580b7a13;p=fw%2Faltos 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"