diff options
| author | Selene ToyKeeper | 2018-11-03 16:50:19 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-11-03 16:50:19 -0600 |
| commit | ba04f5bd8cc8ac59a0ba83b528ada538b93a1773 (patch) | |
| tree | fca80af5f1956c9edfe530415e5f0de7a68b2d52 /bin/flash-tiny13-fuses.sh | |
| parent | applied thermal target bugfix from Anduril (diff) | |
| parent | Added a help message to build.sh and flash.sh (diff) | |
| download | anduril-ba04f5bd8cc8ac59a0ba83b528ada538b93a1773.tar.gz anduril-ba04f5bd8cc8ac59a0ba83b528ada538b93a1773.tar.bz2 anduril-ba04f5bd8cc8ac59a0ba83b528ada538b93a1773.zip | |
merged flash-safer branch (clean up flash/build scripts and make flashing less likely to produce bricks)
Diffstat (limited to 'bin/flash-tiny13-fuses.sh')
| -rwxr-xr-x | bin/flash-tiny13-fuses.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/flash-tiny13-fuses.sh b/bin/flash-tiny13-fuses.sh new file mode 100755 index 0000000..fe479a8 --- /dev/null +++ b/bin/flash-tiny13-fuses.sh @@ -0,0 +1,8 @@ +#/bin/sh +# 4.8 MHz (~4.0 MHz actual), 4ms boot delay, enable flashing +# (everything else disabled) +# Use low fuse 0x75 for 4ms startup delay, +# or 0x79 for 64ms (useful on a twisty light) +avrdude -c usbasp -p t13 -u -Ulfuse:w:0x75:m -Uhfuse:w:0xFF:m + +# http://www.engbedded.com/cgi-bin/fcx.cgi?P_PREV=ATtiny13A&P=ATtiny13A&M_LOW_0x0F=0x05&M_LOW_0x80=0x00&M_HIGH_0x06=0x06&B_SPIEN=P&B_SUT1=P&B_CKSEL1=P&V_LOW=75&V_HIGH=FF&O_HEX=Apply+values |
