No changes between revisions
/Modules/AVR/ATprogISPUSB02A/SW/HEX_STK500V2/flash.bat |
0,0 → 1,20 |
@echo off |
rem Davka pro nahrani frimware do ATprogISPUSB02A |
|
rem Nastaveni cisla portu |
set PORT=lpt1 |
|
rem Nastaveni pouziteho programatoru |
set PRG=picoweb |
|
rem Nezapomen prepnout do nahravaciho rezimu |
echo Set ISP SELECTION (J4) to position internal (1-2) |
pause |
|
rem Naprogramuj propojky a firmware |
avrdude -p atmega8535 -P %PORT% -c %PRG% -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m |
avrdude -p atmega8535 -P %PORT% -c %PRG% -U flash:w:stk500.hex:a |
|
rem Nezapomen prepnout do normalniho rezimu |
echo Set ISP SELECTION (J4) to position normal (2-3) |
pause |
/Modules/AVR/ATprogISPUSB02A/SW/HEX_STK500V2/flash.sh |
1,9 → 1,10 |
# ATprogISPUSB02A fash script |
# Linux Shell Script |
# ATprogISPUSB02A fash script |
# Uses DAPA (Direct Parallel Access) Programmer |
read -p "WARNING: Enables external clock. Make sure a crystal is connected to the ATmega8535! |
Connect a programmer to the ATprogISPUSB02A and set a jumper 'ISP SELECTION' J4 to 'internal' 1-2 close" |
|
avrdude -p atmega8535 -P /dev/parport0 -c dapa -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m |
avrdude -p atmega8535 -P /dev/parport0 -c dapa -U flash:w:stk500.hex:a |
|
echo Set both Reset-Jumpers "ISP sel" J7 to "normal" now 2-3 close |
Connect a programmer to the ATprogISPUSB02A and set a 'ISP SELECTION' jumper (J4) to 'internal' (1-2)" |
|
avrdude -p atmega8535 -P /dev/parport0 -c dapa -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m |
avrdude -p atmega8535 -P /dev/parport0 -c dapa -U flash:w:stk500.hex:a |
|
echo Set 'ISP SELECTION' jumper (J4) to 'normal' (2-3)" |