I am trying to prevent avr-objcopy from inserting the "0x03 Record "Start Segment Address "" into the EEPROM file. (2nd from last line in the intel hex file)
If I have an application entry point in a program for the new AvrTiny1 series, which starts the app section after the bootloader, and I extract the eeprom using avr-objcopy, I can't seem to prevent the application section entry point info from getting into the EEPROM hex file..
I end up getting :0400000300000300F6 in both the application hex, and the eeprom hex.
For application hex the 0x03 record I have noticed will mimic the start address in the application hex file.
In the case of the eeprom the start address of hex data and 0x03 record value obviously are conflicting.
copied from a typical makefile, I have...
#create eeprom file from elf
$GCC/avr-objcopy -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "$FM.elf" "$FM.eep"
:0400000300000300F6 <--- how to remove this? eeprom entry point is not supposed to be 0x300, that is the application entry point
any ideas on how to remove the 0x03 recorded at compile time would be appreciated.