1 2 3 4 5 6 7 8
#!/bin/sh if (( $# != 1 )); then echo "Usage:" echo "$0 <filename of firmware in ELF format>" exit 1 fi openocd -f openocd.cfg -c "program $1 verify reset exit"