Arduino with Atmega8 / No Bootloader / No Xtal

Hello guys,

I have a little question, i will use for some projects some Atmega8 chips, and i would like to use Arduino IDE to program them.

Q1. I've made the following modifications in my boards file (i've used Arduino NG section):

##############################################################

atmegang.name=Arduino NG or older

atmegang.upload.tool=avrdude
atmegang.upload.protocol=arduino
atmegang.upload.speed=19200

atmegang.bootloader.tool=avrdude
atmegang.bootloader.unlock_bits=0x3F
atmegang.bootloader.lock_bits=0x0F

atmegang.build.mcu=atmegang
atmegang.build.f_cpu=8000000L
atmegang.build.board=AVR_NG
atmegang.build.core=arduino
atmegang.build.variant=standard

## Arduino NG or older w/ ATmega168
## --------------------------------
atmegang.menu.cpu.atmega168=ATmega168

atmegang.menu.cpu.atmega168.upload.maximum_size=14336
atmegang.menu.cpu.atmega168.upload.maximum_data_size=1024

atmegang.menu.cpu.atmega168.bootloader.low_fuses=0xff
atmegang.menu.cpu.atmega168.bootloader.high_fuses=0xdd
atmegang.menu.cpu.atmega168.bootloader.extended_fuses=0x00
atmegang.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex

atmegang.menu.cpu.atmega168.build.mcu=atmega168

## Arduino NG or older w/ ATmega8
## ------------------------------
atmegang.menu.cpu.atmega8=ATmega8

atmegang.menu.cpu.atmega8.upload.maximum_size=8191
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

##############################################################

The size of maximum upload seems correct? 8191 is it ok (1024 x 8 = 8192)

I will burn the FUSES with USBASP programmer so ... i guess there will be no need to use fuse configuration keys, am i right?

Thank you in advance and best regards,
Gabriel Tudoran

8191 is it ok (1024 x 8 = 8192)

I guess. I'm not sure why you couldn't set it all the way up to 8192.

Your fuse values are pretty far off from what they should be. (I get E4 DB)
As you say, it won't matter, if you're setting them from elsewhere, but you do need to come up with the correct values.
(Right now, you don't have the internal oscillator selected, and you still have the BOOTRST fuse set, even though you're not using a bootloader.)

Thank you for your fast reply. Yes i know my fuses should be: E4 D1 . I use only IDE, so the rest will be put from elsewhere. I guess the fuse settings will be ok with E4 D1?

Best regards,
Gabriel Tudoran

PS: i've put 8191, because i think memory starts with index 0... that would give me 8192 locations.

Hi,

Were you able to program ATMEGA8 without bootloader, using Arduino as ISP? If yes, please do share your method.

Thanks.