1249 |
miho |
1 |
@echo off |
|
|
2 |
rem Davka pro nahrani frimware do ATprogISPUSB02A |
|
|
3 |
|
|
|
4 |
rem Nastaveni cisla portu |
|
|
5 |
set PORT=lpt1 |
|
|
6 |
|
|
|
7 |
rem Nastaveni pouziteho programatoru |
|
|
8 |
set PRG=picoweb |
|
|
9 |
|
|
|
10 |
rem Nezapomen prepnout do nahravaciho rezimu |
|
|
11 |
echo Set ISP SELECTION (J4) to position internal (1-2) |
|
|
12 |
pause |
|
|
13 |
|
|
|
14 |
rem Naprogramuj propojky a firmware |
|
|
15 |
avrdude -p atmega8535 -P %PORT% -c %PRG% -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m |
|
|
16 |
avrdude -p atmega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a |
|
|
17 |
|
|
|
18 |
rem Nezapomen prepnout do normalniho rezimu |
|
|
19 |
echo Set ISP SELECTION (J4) to position normal (2-3) |
|
|
20 |
pause |