#!/bin/bash cd ~/stm/openocd src/openocd -s tcl -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c 'arm semihosting enable' -c 'reset halt' -c 'reset run'