From dbe0aaf636ccb78a3cc1281b6a1ea6c662af6756 Mon Sep 17 00:00:00 2001 From: Gabriel Hart Date: Fri, 18 Dec 2020 15:23:31 -0600 Subject: Add AVR 1-Series and t1616 board and scripts --- bin/flash-tiny1616.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/flash-tiny1616.sh (limited to 'bin/flash-tiny1616.sh') diff --git a/bin/flash-tiny1616.sh b/bin/flash-tiny1616.sh new file mode 100755 index 0000000..31c8406 --- /dev/null +++ b/bin/flash-tiny1616.sh @@ -0,0 +1,3 @@ +#/bin/sh +FIRMWARE=$1 +avrdude -c jtag2updi -P /dev/ttyUSB0 -p t1616 -u -Uflash:w:$FIRMWARE \ No newline at end of file -- cgit v1.2.3 From eb1c72b72bc663239ae229eae8c5c05ca4846a1d Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 1 Apr 2021 23:16:58 -0600 Subject: added attiny1616 flashing instructions, and made flash-tiny1616.sh configurable via environment variables --- bin/flash-tiny1616.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'bin/flash-tiny1616.sh') 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 -- cgit v1.2.3