#! /usr/bin/env bash set -ep TARGET=${1} BIN="${TARGET}.bin" JLINK="${TARGET}.jlink" BOOTLOADER="$(dirname ${0})/svl/svl.py" echo "size:" arm-none-eabi-size "${TARGET}" echo "objcopy.." arm-none-eabi-objcopy -S -O binary "${TARGET}" "${BIN}" echo "writing JLink script to ${JLINK}.." cat > ${JLINK} <