aboutsummaryrefslogtreecommitdiff
path: root/bin/flash-tiny25-fuses.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-08 17:45:09 -0700
committerSelene ToyKeeper2018-11-08 17:45:09 -0700
commite143d03198ff1d16cc91ed94d5ea529170e9bfbf (patch)
tree0f5ebc8816bea516722dfec7ea832994e4b3c9bf /bin/flash-tiny25-fuses.sh
parentadded lantern pin layout (diff)
parentMade it easier to override hwdef-*.h values in cfg-*.h files. (diff)
downloadanduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.tar.gz
anduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.tar.bz2
anduril-e143d03198ff1d16cc91ed94d5ea529170e9bfbf.zip
merged upstream changes from fsm branch
Diffstat (limited to 'bin/flash-tiny25-fuses.sh')
-rwxr-xr-xbin/flash-tiny25-fuses.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/flash-tiny25-fuses.sh b/bin/flash-tiny25-fuses.sh
new file mode 100755
index 0000000..65d5b1d
--- /dev/null
+++ b/bin/flash-tiny25-fuses.sh
@@ -0,0 +1,8 @@
+#/bin/sh
+# 8 MHz, 4ms boot delay, enable flashing
+# (everything else disabled)
+# Use low fuse 0xD2 for 4ms startup delay,
+# or 0xE2 for 64ms (useful on a twisty light)
+avrdude -c usbasp -p t25 -u -U lfuse:w:0xd2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
+
+# http://www.engbedded.com/cgi-bin/fcx.cgi?P_PREV=ATtiny25&P=ATtiny25&M_LOW_0x3F=0x22&M_HIGH_0x07=0x07&M_HIGH_0x20=0x00&B_SPIEN=P&B_SUT0=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&V_LOW=E2&V_HIGH=DF&V_EXTENDED=FF&O_HEX=Apply+values