first cut at turnon scripts for EasyTimer v2
[fw/altos] / ao-tools / ao-flash / ao-flash-stm32f1
1 #!/bin/sh
2 case "$#" in
3 0)
4         echo "usage: $0 <filename> ..."
5         exit 1
6         ;;
7 esac
8 openocd \
9         -f interface/stlink.cfg \
10         -c 'transport select hla_swd' \
11         -f target/stm32f1x.cfg \
12         -c init \
13         -c 'reset halt' \
14         -c "program $1 verify reset" \
15         -c 'shutdown'