Rev Author Line No. Line
1249 miho 1 # Linux Shell Script
2 # ATprogISPUSB02A fash script
1206 kaklik 3 # Uses DAPA (Direct Parallel Access) Programmer
4 read -p "WARNING: Enables external clock. Make sure a crystal is connected to the ATmega8535!
1249 miho 5 Connect a programmer to the ATprogISPUSB02A and set a 'ISP SELECTION' jumper (J4) to 'internal' (1-2)"
6  
7 avrdude -p atmega8535 -P /dev/parport0 -c dapa -v -U lfuse:w:0xff:m -U hfuse:w:0xdb:m
8 avrdude -p atmega8535 -P /dev/parport0 -c dapa -U flash:w:stk500.hex:a
9  
10 echo Set 'ISP SELECTION' jumper (J4) to 'normal' (2-3)"