]> git.zerfleddert.de Git - fnordlicht-mini/commitdiff
add eeprom writing (including checksum)
authorgitknilch <gitknilch@cwde.de>
Fri, 25 Mar 2011 13:50:13 +0000 (14:50 +0100)
committergitknilch <gitknilch@cwde.de>
Fri, 25 Mar 2011 13:50:13 +0000 (14:50 +0100)
firmware/fnordlicht-firmware/Makefile

index 10f1022a6d047ef45e14d630c2efde40688dbf8f..345a4c1ef2a43f0e3be6459f409b61c572f1c319 100644 (file)
@@ -196,8 +196,8 @@ avrdude-terminal:
 program-%: %.hex
        $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(DEV) -U flash:w:$<
 
-program-eeprom-%: %.eep.hex
-       $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(DEV) -U eeprom:w:$<
+program-eeprom-%: %.eep.bincs
+       $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(DEV) -U eeprom:w:$<:r
 
 # special programming targets
 %.hex: %.elf
@@ -216,6 +216,9 @@ program-eeprom-%: %.eep.hex
 %.eep.hex: %.elf
        $(OBJCOPY) --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex -j .eeprom $< $@
 
+%.bincs: %.bin
+       ../tools/fixcrc < $< > $@
+
 %.eep.bin: %.elf
        $(OBJCOPY) --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O binary -j .eeprom $< $@
 
Impressum, Datenschutz