altosui: Add config and pyro tabs to graph widget
[fw/altos] / ao-tools / ao-flash / ao-flash-samd21
index 1b3dc87bce342491eb0e3cfea66640bad4572f2a..af51ab7a46f21eb6981bd0a7cf81da336e787974 100755 (executable)
@@ -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 "program $1 verify reset" \
+       -c "shutdown"