From dcc52fdfc95e9b2621b46a18250051234891f563 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 3 Nov 2018 16:00:15 -0600 Subject: Renamed flash/build scripts to better indicate MCU type. --- bin/flash-tiny25.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 bin/flash-tiny25.sh (limited to 'bin/flash-tiny25.sh') diff --git a/bin/flash-tiny25.sh b/bin/flash-tiny25.sh new file mode 100755 index 0000000..0b24bb2 --- /dev/null +++ b/bin/flash-tiny25.sh @@ -0,0 +1,4 @@ +#/bin/sh +FIRMWARE=$1 +avrdude -c usbasp -p t25 -u -U lfuse:w:0xd2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -Uflash:w:$FIRMWARE +# 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_SUT1=P&B_SPIEN=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&V_LOW=D2&V_HIGH=DF&V_EXTENDED=FF -- cgit v1.2.3 From 4df62bd9d7c3b7bbb9a62ab13b78d7f42da99958 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 3 Nov 2018 16:17:50 -0600 Subject: Split flashing scripts into firmware vs fuses, to help prevent accidental bricking. (some people had errors happen during the fuse parts, and ended up with bricks) --- bin/flash-tiny25.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/flash-tiny25.sh') diff --git a/bin/flash-tiny25.sh b/bin/flash-tiny25.sh index 0b24bb2..9975671 100755 --- a/bin/flash-tiny25.sh +++ b/bin/flash-tiny25.sh @@ -1,4 +1,3 @@ #/bin/sh FIRMWARE=$1 -avrdude -c usbasp -p t25 -u -U lfuse:w:0xd2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -Uflash:w:$FIRMWARE -# 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_SUT1=P&B_SPIEN=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&V_LOW=D2&V_HIGH=DF&V_EXTENDED=FF +avrdude -c usbasp -p t25 -u -Uflash:w:$FIRMWARE -- cgit v1.2.3