aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-04-01 23:16:58 -0600
committerSelene ToyKeeper2021-04-01 23:16:58 -0600
commiteb1c72b72bc663239ae229eae8c5c05ca4846a1d (patch)
tree3be318451528d2bd3bde8d309a363affbf6cdfe7 /bin
parentreverted version.h back to generic original (diff)
downloadanduril-eb1c72b72bc663239ae229eae8c5c05ca4846a1d.tar.gz
anduril-eb1c72b72bc663239ae229eae8c5c05ca4846a1d.tar.bz2
anduril-eb1c72b72bc663239ae229eae8c5c05ca4846a1d.zip
added attiny1616 flashing instructions, and made flash-tiny1616.sh configurable via environment variables
Diffstat (limited to 'bin')
-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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.