This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

arm-elf-objcopy


> Aravind B <arvindb@cranessoftware.com> writes:

> i have generated an hex file from elf using command
> arm-elf-objcopy -O ihex simple-alarm2.elf simple.hex
> when i tried to generate a bin file (dos environment) using this hex
> file, i am getting an error - Invalid record type in hex record - < 
> line
> number>. This happens with all .hex files generated, using
> arm-elf-objcopy.
> What is the hex record at that line? Does it look invalid? Maybe the
> DOS tool you are using has a different idea of what constitutes a hex
> file to binutils. 
> 
> I would like to know if this error is due to incorrect usage of the
> above command or for any other reason.

> Generally we have only ever generated different formats directly from
> the ELF original. Going via some intermediary format doesn't always
> work since the intermediary may not have preserved enough information.

> -- 
> Nick Garnett                    eCos Kernel Architect
> http://www.ecoscentric.com/     The eCos and RedBoot experts


So intel hex file generated by dos environment is different form linux
environment.
the line which is giving error is 
:040000054000004077.
I think it is invalid because another line 
:020000044003b7
have the same address.

i want to know why this is happening.And is there a way to get rid of
it.
Actually i want to split intel hex file so that it can be fit int my
flash.For that i am using hex file splitter in dos.
Is it possible to split hex file in linux.

thanking in advance

Aravind B



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]