4 echo "usage: $0 <filename> ..."
11 if which $ST_FLASH > /dev/null; then
14 echo "$0: $ST_FLASH not found. Check to see if the stlink package is installed"
23 base=`arm-none-eabi-nm $file | awk '/interrupt_vector/ { print $1 }'`
26 echo "$file: No interrupt vector address found"
31 arm-none-eabi-objcopy -O binary $file $bin
33 $ST_FLASH --reset write $bin $base