Re: avr-gcc and char strings
Andreas Höschler <[email protected]>
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list