Rev 1015 Rev 1117
Line 1... Line 1...
1 rem example for avrdude 1 rem example for avrdude
2   2  
3   3  
4 @echo off 4 @echo off
5 set PRG=stk500 5 set PRG=stk500v2
6 set PORT=com2 6 set PORT=com2
7 pause 7 pause
8 echo * Step 2 - ATmega8535 8 echo * Step 2 - ATmega8535
9 echo WARNING: Enables external clock. Make sure a crystal is connected 9 echo WARNING: Enables external clock. Make sure a crystal is connected
10 echo to the ATmega8535! 10 echo to the ATmega8535!
Line 12... Line 12...
12 echo "ISP mega8535" 1-2 close 12 echo "ISP mega8535" 1-2 close
13 pause 13 pause
14 avrdude -p atmega8535 -P %PORT% -c %PRG% -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m 14 avrdude -p atmega8535 -P %PORT% -c %PRG% -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m
15   15  
16 pause 16 pause
17 avrdude -p mega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a 17 avrdude -p atmega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a
18   18  
19 echo Set both Reset-Jumpers "ISP sel" J7 to "normal" now 2-3 close 19 echo Set both Reset-Jumpers "ISP sel" J7 to "normal" now 2-3 close
20 20