[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] crc of program memory - SOLVED -
From: |
Uwe Fechner |
Subject: |
Re: [avr-gcc-list] crc of program memory - SOLVED - |
Date: |
Fri, 31 Mar 2006 11:06:04 +0200 |
User-agent: |
Mail/News 1.5 (X11/20060311) |
Hello,
I solved my problems by switching form intel hex format to motorola
srecord format:
I made the following changes to the makefile:
# Output format. (can be srec, ihex, binary)
FORMAT = srec
# Create final output files (.hex, .eep) from ELF output file.
%.hex: %.elf
@echo
@echo $(MSG_FLASH) $@
$(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
mv $@ $(TARGET).org.hex
srec_cat $(TARGET).org.hex -Little_Endian_CRC16 -max
$(TARGET).org.hex -Output $(TARGET).hex
# Target: clean project.
clean: begin clean_list finished end
clean_list :
@echo
@echo $(MSG_CLEANING)
$(REMOVE) $(TARGET).hex
$(REMOVE) $(TARGET).org.hex
$(REMOVE) $(TARGET).eep
As I use avrdude, everything works fine now.
Thank you for the patience.
Uwe Fechner