Debian Codegraph @

ao-tools/ao-flash/ao-flash-samd21

raw
1 #!/bin/sh
2 case "$#" in
3 1)
4 ;;
5 *)
6 echo "usage: $0 <filename> ..."
7 exit 1
8 ;;
9 esac
10 openocd -f interface/stlink.cfg \
11 -c 'transport select hla_swd' \
12 -c 'set CHIPNAME at91samd21g18' \
13 -c 'set CPUTAPID 0x0bc11477' \
14 -f target/at91samdXX.cfg \
15 -c init \
16 -c 'reset halt' \
17 -c 'at91samd bootloader 0' \
18 -c "program $1 verify reset" \
19 -c "shutdown"