Subversion Repositories FlightCtrl

Rev

Rev 2044 | Rev 2048 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2044 Rev 2045
Line 255... Line 255...
255
 
255
 
256
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
256
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
257
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
257
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
Line -... Line 258...
-
 
258
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
-
 
259
 
-
 
260
# Make a dummy read in order to cycle the reset pin on the MCU. 
258
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
261
AVRDUDE_RESET = -u -U lfuse:r:m
259
 
262
 
Line 260... Line 263...
260
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
263
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
261
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -B 1
264
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -B 1
Line 389... Line 392...
389
 
392
 
390
# Program the device.  
393
# Program the device.  
391
program: $(TARGET).hex $(TARGET).eep
394
program: $(TARGET).hex $(TARGET).eep
Line -... Line 395...
-
 
395
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
-
 
396
 
-
 
397
reset: 
392
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
398
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_RESET)
393
 
399
 
394
# Create final output files (.hex, .eep) from ELF output file.
400
# Create final output files (.hex, .eep) from ELF output file.
395
%.hex: %.elf
401
%.hex: %.elf
396
	@echo
402
	@echo