Line -... |
Line 1... |
- |
|
1 |
#!/bin/bash |
1 |
# Linux Shell Script |
2 |
# Linux Shell Script |
2 |
# ATprogISPUSB02A fash script |
3 |
# ATprogISPUSB02A fash script |
3 |
# Uses DAPA (Direct Parallel Access) Programmer |
4 |
# Uses DAPA (Direct Parallel Access) Programmer |
4 |
read -p "WARNING: This procedure enables external clock. Make sure if a 16MHz crystal is installed on MCU module with ATmega328 and connect the MCU module to the programmer ATprogISPUSB02A" |
5 |
read -p "WARNING: This procedure enables external clock. Make sure if a 16MHz crystal is installed on MCU module with ATmega328 and connect the MCU module to the programmer ATprogISPUSB02A" -n1 -s |
5 |
avrdude -F -p atmega328P -P $1 -c stk500v2 -B 50 -v -U efuse:w:0x05:m -U lfuse:w:0xff:m -U hfuse:w:0xda:m |
6 |
avrdude -F -p atmega328P -P $1 -c stk500v2 -B 50 -v -U efuse:w:0xff:m -U lfuse:w:0xff:m -U hfuse:w:0xda:m |
6 |
avrdude -F -p atmega328P -P $1 -c stk500v2 -B 50 -U flash:w:ATmegaBOOT_168_atmega328.hex:a |
7 |
avrdude -F -p atmega328P -P $1 -c stk500v2 -B 50 -U flash:w:ATmegaBOOT_168_atmega328.hex:a |
7 |
echo "If none errors above - Please connect the USB232R01B module to bootload the LABduino via Arduino software." |
8 |
echo "If none errors above - Please connect the USB232R01B module to bootload the LABduino via Arduino software." |