From 06e73f0938d98d18d62a0bd054334d795d29e31a Mon Sep 17 00:00:00 2001 From: gitknilch Date: Fri, 25 Mar 2011 14:50:13 +0100 Subject: [PATCH] add eeprom writing (including checksum) --- firmware/fnordlicht-firmware/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/fnordlicht-firmware/Makefile b/firmware/fnordlicht-firmware/Makefile index 10f1022..345a4c1 100644 --- a/firmware/fnordlicht-firmware/Makefile +++ b/firmware/fnordlicht-firmware/Makefile @@ -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 $< $@ -- 2.39.5