#!/bin/bash echo "##" echo "## Flashing $1" echo "##" openocd -f board/st_nucleo_f334r8.cfg \ -c "init" \ -c "targets" \ -c "reset halt" \ -c "program $1 0x8000000 verify" \ -c "reset run"\ -c "shutdown"