Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1396 - 1
set PATH=D:\Projekte\Atmel_AVR\_Tools\GCC\WinAVR-20100110_V4.3.3\bin;%PATH%
2
 
3
del *.elf
4
del *.hex
5
 
6
@rem -> compile and link
7
avr-gcc -Os -Wall -mmcu=attiny44a -DF_CPU=8000000 -o main.elf main.c
8
 
9
@rem -> generate program hex file
10
avr-objcopy -O ihex main.elf main.hex
11
 
12
@rem -> display program size
13
avr-size main.hex
14
 
15
@rem -Os             optimization level (optimize for size)
16
@rem -Wall           show all warnings
17
@rem -mmcu=attiny44a generate code for ATtiny44a
18
@rem -DF_CPU=8000000 CPU-Frequenz 8.0 MHz
19
@rem -o              output file name
20
 
21
pause