Usage:
sudo /usr/local/bin/openocd -f ~/raspberrypi2-native.cfg -f ~/stm32f1x.cfg -c init -c 'reset halt' -c "stm32f1x unlock 0" -c reset -c exit
sudo /usr/local/bin/openocd -f ~/raspberrypi2-native.cfg -f ~/stm32f1x.cfg -c init -c 'reset halt' -c "program build/gnuk.elf verify reset" -c "reset halt" -c "stm32f1x lock 0" -c reset -c exit