1 |
rem example for avrdude |
1 |
rem example for avrdude |
2 |
|
2 |
|
3 |
|
3 |
|
4 |
@echo off |
4 |
@echo off |
5 |
set PRG=stk500v2 |
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! |
11 |
echo Connect programmer to ATmega8535 and Evertools mega8535 reset-jumper "ISP sel" J7 to |
11 |
echo Connect programmer to ATmega8535 and Evertools mega8535 reset-jumper "ISP sel" J7 to |
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 |
- |
|
17 |
avrdude -p atmega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a |
16 |
avrdude -p atmega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a |
18 |
|
17 |
|
19 |
echo Set both Reset-Jumpers "ISP sel" J7 to "normal" now 2-3 close |
18 |
echo Set both Reset-Jumpers "ISP sel" J7 to "normal" now 2-3 close |