#!/bin/bash $(dirname $0)/stlink/st-flash write "$4" 0x8000000 "$(dirname $0)/wait_for_serial" /dev/$1