#!/bin/sh # Usage: ./ocd.sh # start gdb.sh script afterwards # run openocd server with telnet interface on localhost:4444 and GDB interface # on localhost:3333 openocd -f interface/stlink.cfg -f target/stm32f1x.cfg