* Accessing ihex file
@ 2006-09-09 12:16 dimax un
2006-09-09 13:10 ` Dave Korn
0 siblings, 1 reply; 4+ messages in thread
From: dimax un @ 2006-09-09 12:16 UTC (permalink / raw)
To: binutils
Hello.
What methods should I use to access intel HEX file? As far as I could
understand libbfd may do it but I'm not sure. Can you please clear it
for me?
Thanks. Alex.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Accessing ihex file
2006-09-09 12:16 Accessing ihex file dimax un
@ 2006-09-09 13:10 ` Dave Korn
2006-09-09 13:19 ` dimax un
0 siblings, 1 reply; 4+ messages in thread
From: Dave Korn @ 2006-09-09 13:10 UTC (permalink / raw)
To: 'dimax un', binutils
On 09 September 2006 13:16, dimax un wrote:
> Hello.
> What methods should I use to access intel HEX file? As far as I could
> understand libbfd may do it but I'm not sure. Can you please clear it
> for me?
Yes, and you can use the 'ihex' target with any of the binutils, e.g.
objcopy -O ihex -j .text foo.o foo.ihex
will extract the .text section from object file foo.o and write it in ihex
format to foo.ihex.
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing ihex file
2006-09-09 13:10 ` Dave Korn
@ 2006-09-09 13:19 ` dimax un
2006-09-10 13:53 ` Dave Korn
0 siblings, 1 reply; 4+ messages in thread
From: dimax un @ 2006-09-09 13:19 UTC (permalink / raw)
To: Dave Korn; +Cc: binutils
Thanks.
I'm thinking to use objcopy as a reference code.
I need to write application to send ihex file in via GPRS to the
target for FW update.
But I do not want to send it as ASCII Hex as receiving part is not
capable to parse it. So I'll have to convert it into binary buffer.
On 9/9/06, Dave Korn <dave.korn@artimi.com> wrote:
> On 09 September 2006 13:16, dimax un wrote:
>
> > Hello.
> > What methods should I use to access intel HEX file? As far as I could
> > understand libbfd may do it but I'm not sure. Can you please clear it
> > for me?
>
> Yes, and you can use the 'ihex' target with any of the binutils, e.g.
>
> objcopy -O ihex -j .text foo.o foo.ihex
>
> will extract the .text section from object file foo.o and write it in ihex
> format to foo.ihex.
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Accessing ihex file
2006-09-09 13:19 ` dimax un
@ 2006-09-10 13:53 ` Dave Korn
0 siblings, 0 replies; 4+ messages in thread
From: Dave Korn @ 2006-09-10 13:53 UTC (permalink / raw)
To: 'dimax un'; +Cc: binutils
On 09 September 2006 14:19, dimax un wrote:
> Thanks.
> I'm thinking to use objcopy as a reference code.
> I need to write application to send ihex file in via GPRS to the
> target for FW update.
> But I do not want to send it as ASCII Hex as receiving part is not
> capable to parse it. So I'll have to convert it into binary buffer.
Binary? You want binary format then:
objcopy -I ihex -O binary foo.ihex foo.bin
will read foo.ihex and convert it to binary.
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-10 13:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-09 12:16 Accessing ihex file dimax un
2006-09-09 13:10 ` Dave Korn
2006-09-09 13:19 ` dimax un
2006-09-10 13:53 ` Dave Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).