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



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to