X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-flash%2Fao-flash-stm32f1;fp=ao-tools%2Fao-flash%2Fao-flash-stm32f1;h=536086e11a60c58371225440e565a3cc9d397d49;hb=b1ecef2cdc57561881d55f9dcc3b471f7b0ed27d;hp=0000000000000000000000000000000000000000;hpb=2d15724c4a175a4807dbbde6d2c2f241a9c49021;p=fw%2Faltos diff --git a/ao-tools/ao-flash/ao-flash-stm32f1 b/ao-tools/ao-flash/ao-flash-stm32f1 new file mode 100755 index 00000000..536086e1 --- /dev/null +++ b/ao-tools/ao-flash/ao-flash-stm32f1 @@ -0,0 +1,15 @@ +#!/bin/sh +case "$#" in +0) + echo "usage: $0 ..." + exit 1 + ;; +esac +openocd \ + -f interface/stlink.cfg \ + -c 'transport select hla_swd' \ + -f target/stm32f1x.cfg \ + -c init \ + -c 'reset halt' \ + -c "program $1 verify reset" \ + -c 'shutdown'