1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-30 11:24:12 +01:00
Arduino/bootloader/build.bat
Massimo Banzi 15ae9ab1b0 Added bootloader files and the programming commands
including the script which sets the correct fuses
currently working only on mac os x but easy to port
to windows/linux
2005-09-14 17:04:31 +00:00

7 lines
462 B
Batchfile
Executable File

avr-gcc -g -Wall -O3 -mmcu=atmega8 -DCRUMB8 -c -o ATmegaBOOT.o ATmegaBOOT.c
avr-gcc -g -Wall -O3 -mmcu=atmega8 -DCRUMB8 -Wl,-Map,ATmegaBOOT.map,--section-start=.text=0x1800 -o ATmegaBOOT.elf ATmegaBOOT.o
avr-objdump -S -h ATmegaBOOT.elf > ATmegaBOOT.lst
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT.elf ATmegaBOOT.hex
avr-objcopy -j .text -j .data -O binary ATmegaBOOT.elf ATmegaBOOT.bin
avr-objcopy -j .text -j .data -O srec ATmegaBOOT.elf ATmegaBOOT.srec