Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

set PATH=D:\Projekte\Atmel_AVR\_Tools\GCC\WinAVR-20100110_V4.3.3\bin;%PATH%

del *.elf
del *.hex

@rem -> compile and link

avr-gcc -Os -Wall -mmcu=attiny44a -DF_CPU=8000000 -o main.elf main.c

@rem -> generate program hex file

avr-objcopy -O ihex main.elf main.hex

@rem -> display program size

avr-size main.hex

@rem -Os             optimization level (optimize for size)

@rem -Wall           show all warnings
@rem -mmcu=attiny44a generate code for ATtiny44a
@rem -DF_CPU=8000000 CPU-Frequenz 8.0 MHz
@rem -o              output file name

pause