aboutsummaryrefslogtreecommitdiff
path: root/bin/flash-tiny1616.sh
diff options
context:
space:
mode:
authorGabriel Hart2021-04-14 14:10:14 -0500
committerGabriel Hart2021-04-14 14:10:14 -0500
commit9dddc98863af8987c671d978d2ce8bc7e67c2e89 (patch)
treebbc9d3df42e9d8b366fefea45ad15700c001153e /bin/flash-tiny1616.sh
parentMerge TKs changes from 2021-01-25 (diff)
parentfixed missing ifdef for simple UI (diff)
downloadanduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.tar.gz
anduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.tar.bz2
anduril-9dddc98863af8987c671d978d2ce8bc7e67c2e89.zip
Merge from main branch
Diffstat (limited to 'bin/flash-tiny1616.sh')
-rwxr-xr-xbin/flash-tiny1616.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/flash-tiny1616.sh b/bin/flash-tiny1616.sh
index 31c8406..44d716c 100755
--- a/bin/flash-tiny1616.sh
+++ b/bin/flash-tiny1616.sh
@@ -1,3 +1,14 @@
#/bin/sh
FIRMWARE=$1
-avrdude -c jtag2updi -P /dev/ttyUSB0 -p t1616 -u -Uflash:w:$FIRMWARE \ No newline at end of file
+if [ -z "$AVRDUDE_TTYUSB" ]; then AVRDUDE_TTYUSB=/dev/ttyUSB0 ; fi
+
+# In your shell config:
+# from https://github.com/ElTangas/jtag2updi ...
+# export AVRDUDE_CONF="-C$HOME/path/to/jtag2updi/avrdude.conf"
+# export AVRDUDE_TTYUSB="/dev/ttyUSB2"
+
+avrdude $AVRDUDE_CONF \
+ -c jtag2updi \
+ -P $AVRDUDE_TTYUSB \
+ -p t1616 \
+ -u -Uflash:w:$FIRMWARE