Im seeking a bootloader for ATmega8 16 Mhz

Im seeking a bootloader for ATmega8 16 Mhz but i can only find bootloaders who using the internal oscillator. I want to use the external 16 MHz oscillator.

Can you help me?

/ Thanks P

Doesn’t this do that?

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

atmega8.name=Arduino NG or older w/ ATmega8

atmega8.upload.protocol=arduino
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200

atmega8.bootloader.low_fuses=0xdf
atmega8.bootloader.high_fuses=0xca
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT-prod-firmware-2009-11-07.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F

atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L
atmega8.build.core=arduino
atmega8.build.variant=standard

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

atmega8.build.f_cpu=16000000L <<< Gotta be external - internal is only 8MHz

CrossRoads:
Doesn’t this do that?

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

atmega8.name=Arduino NG or older w/ ATmega8

atmega8.upload.protocol=arduino
atmega8.upload.maximum_size=7168
atmega8.upload.speed=19200

atmega8.bootloader.low_fuses=0xdf
atmega8.bootloader.high_fuses=0xca
atmega8.bootloader.path=atmega8
atmega8.bootloader.file=ATmegaBOOT-prod-firmware-2009-11-07.hex
atmega8.bootloader.unlock_bits=0x3F
atmega8.bootloader.lock_bits=0x0F

atmega8.build.mcu=atmega8
atmega8.build.f_cpu=16000000L
atmega8.build.core=arduino
atmega8.build.variant=standard

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




atmega8.build.f_cpu=16000000L <<< Gotta be external - internal is only 8MHz

Thank you!

I haven’t notice that Arduino NG did use the ATmega8 withg 16 Mhz :slight_smile:

Yep, NG is the guy. Anyway, good luck with the 10 second wait each startup.
Maybe there's an optiboot for atmega8.

Optiboot also includes support for ATmega8 at 16MHz. The optiboot_atmega8.hex distributed with the Arduino IDE should do it, but you'll have to edit a boards.txt manually. the latest optiboot no longer includes an ATmega8 .hex file, but you can build it yourself.

westfw:
Optiboot also includes support for ATmega8 at 16MHz. The optiboot_atmega8.hex distributed with the Arduino IDE should do it, but you’ll have to edit a boards.txt manually. the latest optiboot no longer includes an ATmega8 .hex file, but you can build it yourself.

Is my modified boards.txt entry will work on external 16MHz Crystal config. fresh bought blank ATmega8-16PU MCU’s?

##############################################################
opti8.name=Arduino w/ Optiboot ATmega8-16PU
opti8.upload.protocol=arduino
opti8.upload.maximum_size=7680
opti8.upload.speed=19200
opti8.bootloader.low_fuses=0xbf
opti8.bootloader.high_fuses=0xcc
opti8.bootloader.path=optiboot
opti8.bootloader.file=optiboot_atmega8.hex
opti8.bootloader.unlock_bits=0x3F
opti8.bootloader.lock_bits=0x0F
opti8.build.mcu=atmega8
opti8.build.f_cpu=16000000L
opti8.build.core=arduino
opti8.build.variant=standard
##############################################################

Thank you!

@beic, please do not cross-post. Please do not hijack.

The answer to your question is here...

Ohh, yeah, thank you!