Unable to find Atmega8A in the Arduino target Board ?
1. search board board.txt
2. usually could be found in <arduino-root-dir>/hardware/arduino/board.txt
3. copy paste (warning this is arduino 1.6.9 look-like)
scroll until you find
## Arduino NG or older w/ ATmega8
## ------------------------------
atmegang.menu.cpu.atmega8=ATmega8
atmegang.menu.cpu.atmega8.upload.maximum_size=7168
atmegang.menu.cpu.atmega8.upload.maximum_data_size=1024
atmegang.menu.cpu.atmega8.bootloader.low_fuses=0xdf
atmegang.menu.cpu.atmega8.bootloader.high_fuses=0xca
atmegang.menu.cpu.atmega8.bootloader.file=atmega8/ATmegaBOOT-prod-firmware-2009-11-07.hex
atmegang.menu.cpu.atmega8.build.mcu=atmega8
And add this block of code after,
atmegang.menu.cpu.atmega8bare=ATmega8-Factory
atmegang.menu.cpu.atmega8bare.upload.maximum_size=7168
atmegang.menu.cpu.atmega8bare.upload.maximum_data_size=1024
atmegang.menu.cpu.atmega8bare.bootloader.low_fuses=0xdf
atmegang.menu.cpu.atmega8bare.bootloader.high_fuses=0xca
atmegang.menu.cpu.atmega8bare.bootloader.file=atmega8/ATmegaBOOT-prod-firmware-2009-11-07.hex
atmegang.menu.cpu.atmega8bare.build.mcu=atmega8
atmegang.menu.cpu.atmega8bare.build.f_cpu=1000000L
Notice that the difference is by adding "atmegang.menu.cpu.atmega8bare.build.f_cpu=1000000L"
Since most of the chips/dev-board is using the 16MHz X-tal, and for my project requirement,
had to use the factory setting and run in minimum power consumption mode.
Program your UNO R3 or any Arduino dev-board to `Arduino as ISP` you could find it in
the example sketchbook.
Good luck ^^
Comments