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=c361192dbeabeb434fd6744e575756c012545d1b;hp=0000000000000000000000000000000000000000;hpb=e8b0ac5a17d2fb5a0d99ea86c3a2e1c780d3adf3;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'