aboutsummaryrefslogtreecommitdiff
path: root/bin/flash.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-03 16:47:44 -0600
committerSelene ToyKeeper2018-11-03 16:47:44 -0600
commitf58d398e0d8889dac90f533b8099a328e7792802 (patch)
treefca80af5f1956c9edfe530415e5f0de7a68b2d52 /bin/flash.sh
parentApplied recent updates to FSM build scripts, and added some really simple Mak... (diff)
downloadanduril-f58d398e0d8889dac90f533b8099a328e7792802.tar.gz
anduril-f58d398e0d8889dac90f533b8099a328e7792802.tar.bz2
anduril-f58d398e0d8889dac90f533b8099a328e7792802.zip
Added a help message to build.sh and flash.sh
Diffstat (limited to 'bin/flash.sh')
-rwxr-xr-xbin/flash.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/flash.sh b/bin/flash.sh
index 019631a..0423c90 100755
--- a/bin/flash.sh
+++ b/bin/flash.sh
@@ -2,6 +2,13 @@
# Flashes both fuses and firmware.
+if [ -z "$1" ]; then
+ echo "Usage: flash.sh MCU myprogram[.hex]"
+ echo "MCU is a number, like '13' for attiny13 or '841' for attiny841"
+ echo "The .hex suffix is optional."
+ exit
+fi
+
set -e
BASEDIR=$(dirname "$0")