avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] avr-gcc and char strings


From: Andreas Höschler
Subject: Re: [avr-gcc-list] avr-gcc and char strings
Date: Thu, 4 Dec 2014 12:36:56 +0100

Hi Paweł,

$(PROJECT).hex: $(PROJECT).out
$(OBJCOPY) -j .text -O ihex $(PROJECT).out $(PROJECT).hex

I would say that here is the problem, change this to:
$(OBJCOPY) -R .eeprom -O ihex $(PROJECT).out $(PROJECT).hex


That was it!!!! 

Thanks so much! You probably can't imagine how happy I am that this problem is finally resolved.

I would love to understand the difference between "-j .text" and "-R .eeprom". I googled for avr-objcopy and all I found was

       -j sectionname
       --only-section=sectionname
           Copy only the named section from the input file to the output file.
           This  option  may  be  given  more than once.  Note that using this
      [-R sectionname|--remove-section=sectionname
This does not really explains it to me! :-( Can I always use "-R .eeprom" and am done or should I understand what these options mean and use them from case to case?
Thanks,
    Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]