Add minipro dump/flash scripts

This commit is contained in:
Jeremy Soller
2022-02-24 15:32:09 -07:00
parent 86cdf54e96
commit 55ebe812ba
6 changed files with 60 additions and 0 deletions

15
scripts/_minipro.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
if [ ! -d "models/${MODEL}" ]
then
echo "model '${MODEL}' not found" >&2
exit 1
fi
MODEL_DIR="$(realpath "models/${MODEL}")"
if [ ! -f "${MODEL_DIR}/minipro.txt" ]
then
echo "model '${MODEL}' does not have minipro.txt" >&2
exit 1
fi
CHIP="$(cat "${MODEL_DIR}/minipro.txt")"