Subversion Repositories Projects

Rev

Rev 759 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 759 Rev 765
Line 3... Line 3...
3
MCU = atmega644p
3
MCU = atmega644p
4
F_CPU = 20000000
4
F_CPU = 20000000
5
#-------------------------------------------------------------------
5
#-------------------------------------------------------------------
6
VERSION_MAJOR    =  0
6
VERSION_MAJOR    =  0
7
VERSION_MINOR    =  1
7
VERSION_MINOR    =  1
8
VERSION_PATCH    =  6
8
VERSION_PATCH    =  7
9
 
9
 
10
VERSION_SERIAL_MAJOR = 11	# Serial Protocol Major Version
10
VERSION_SERIAL_MAJOR = 11	# Serial Protocol Major Version
11
VERSION_SERIAL_MINOR = 0	# Serial Protocol Minor Version
11
VERSION_SERIAL_MINOR = 0	# Serial Protocol Minor Version
12
 
12
 
13
#-------------------------------------------------------------------
13
#-------------------------------------------------------------------
Line 170... Line 170...
170
# to get a full listing.
170
# to get a full listing.
171
#
171
#
172
#AVRDUDE_PROGRAMMER = dt006
172
#AVRDUDE_PROGRAMMER = dt006
173
#AVRDUDE_PROGRAMMER = stk200
173
#AVRDUDE_PROGRAMMER = stk200
174
#AVRDUDE_PROGRAMMER = ponyser
174
#AVRDUDE_PROGRAMMER = ponyser
175
AVRDUDE_PROGRAMMER = usbasp
175
AVRDUDE_PROGRAMMER = avrispv2
176
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden
176
#falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden
177
 
177
 
178
#AVRDUDE_PORT = com1    # programmer connected to serial device
178
#AVRDUDE_PORT = com1    # programmer connected to serial device
179
#AVRDUDE_PORT = lpt1    # programmer connected to parallel port
179
#AVRDUDE_PORT = lpt1    # programmer connected to parallel port
180
#AVRDUDE_PORT = usb # programmer connected to USB
180
AVRDUDE_PORT = usb # programmer connected to USB
181
 
181
 
182
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
182
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
183
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
183
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
184
AVRDUDE_WRITE_FUSE = $(FUSE_SETTINGS)
-
 
185
AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
184
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
186
 
185
 
187
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
186
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
188
AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
187
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
189
 
188
 
190
# Uncomment the following if you want avrdude's erase cycle counter.
189
# Uncomment the following if you want avrdude's erase cycle counter.
191
# Note that this counter needs to be initialized first using -Yn,
190
# Note that this counter needs to be initialized first using -Yn,
192
# see avrdude manual.
191
# see avrdude manual.
193
#AVRDUDE_ERASE += -y
192
#AVRDUDE_ERASE += -y
Line 224... Line 223...
224
 
223
 
225
REMOVE = rm -f
224
REMOVE = rm -f
226
COPY = cp
225
COPY = cp
227
 
226
 
228
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
227
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
229
ELFSIZE = $(SIZE) -A $(TARGET).elf
228
ELFSIZE = $(SIZE) -x -A $(TARGET).elf
-
 
229
LIMITS = $(SIZE) -C --mcu=$(MCU) $(TARGET).elf
230
 
230
 
231
# Define Messages
231
# Define Messages
232
# English
232
# English
233
MSG_ERRORS_NONE = Errors: none
233
MSG_ERRORS_NONE = Errors: none
234
MSG_BEGIN = -------- begin --------
234
MSG_BEGIN = -------- begin --------
Line 280... Line 280...
280
	@echo
280
	@echo
281
 
281
 
282
 
282
 
283
# Display size of file.
283
# Display size of file.
284
sizebefore:
284
sizebefore:
285
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
285
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi
286
 
286
 
287
sizeafter:
287
sizeafter:
288
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
288
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi
289
 
289
 
290
 
290
 
291
 
291
 
292
# Display compiler version information.
292
# Display compiler version information.
293
gccversion : 
293
gccversion : 
Line 316... Line 316...
316
 
316
 
317
 
317
 
318
 
318
 
319
 
319
 
320
# Program the device.  
320
# Program the device.  
321
flash: $(TARGET).hex
-
 
322
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
-
 
323
 
-
 
324
eeprom: $(TARGET).eep
321
program: $(TARGET).hex $(TARGET).eep
325
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_EEPROM)
322
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
326
 
-
 
327
fuse:
-
 
328
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSE)
-
 
329
 
-
 
330
reset:
-
 
331
	$(AVRDUDE) $(AVRDUDE_FLAGS)
-
 
332
 
323
 
333
 
324
 
334
 
325
 
335
 
326
 
336
# Create final output files (.hex, .eep) from ELF output file.
327
# Create final output files (.hex, .eep) from ELF output file.