atmega8 bootloader source code

C:\WinAVR-20070525/bin/avr-gcc -g -Wall -Os -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=9600 -c -o ATmegaBOOT.o ATmegaBOOT.c
In file included from ATmegaBOOT.c:39: c:/winavr-20070525/bin/../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
C:\WinAVR-20070525/bin/avr-gcc -g -Wall -Os -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=9600 -Wl,-Map,ATmegaBOOT.map,--section-start=.text=0x1800 -o AT
megaBOOT.elf ATmegaBOOT.o
C:\WinAVR-20070525/bin/avr-objdump -h -S ATmegaBOOT.elf > ATmegaBOOT.lst
C:\WinAVR-20070525/bin/avr-objcopy -j .text -j .data -O ihex ATmegaBOOT.elf ATmegaBOOT.hex
C:\WinAVR-20070525/bin/avr-objcopy -j .text -j .data -O binary ATmegaBOOT.elf ATmegaBOOT.bin
C:\WinAVR-20070525/bin/avr-objcopy -j .text -j .data -O srec ATmegaBOOT.elf ATmegaBOOT.srec
C:\WinAVR-20070525/bin/avr-gcc -S -g -Wall -Os -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=9600 -g1 ATmegaBOOT.c
In file included from ATmegaBOOT.c:39: c:/winavr-20070525/bin/../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
C:\WinAVR-20070525/bin/avr-size ATmegaBOOT.hex
text data bss dec hex filename
0 1088 0 1088 440 ATmegaBOOT.hex

Well, This is how I realized that the hex file was 1088 bytes.

The only change I made was changing the start address from 1c00 to 1800 in the make file in order to get the bootloader compiled (with 1c00, it was giving a compilation error)

@worapoht, Can you please point me to the right avr-gcc download on net. I'll try using it once.

Thanks :slight_smile: