X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f1%2Fopenocd-stm32f1;fp=src%2Fstm32f1%2Fopenocd-stm32f1;h=20b074ef61c686ff71f8da4dffc2374f84b3c86a;hb=1311eba0bbe32bc1759a3b11b00c78774843383c;hp=0000000000000000000000000000000000000000;hpb=7b2588ee723827b9be2a2d5f287afb1b5d351b23;p=fw%2Faltos diff --git a/src/stm32f1/openocd-stm32f1 b/src/stm32f1/openocd-stm32f1 new file mode 100755 index 00000000..20b074ef --- /dev/null +++ b/src/stm32f1/openocd-stm32f1 @@ -0,0 +1,12 @@ +#!/bin/sh +#OPENOCD=openocd +#OPENOCD=/usr/bin/openocd +#OPENOCD=/local/src/openocd/src/openocd +OPENOCD=/local/bin/openocd +exec $OPENOCD \ + -f interface/stlink.cfg \ + -c 'transport select hla_swd' \ + -f target/stm32f1x.cfg -c init \ + -c 'reset halt' \ + -c 'stm32f1x.cpu arm semihosting enable' \ + "$@"