From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1125 invoked by alias); 9 Sep 2006 13:19:04 -0000 Received: (qmail 1117 invoked by uid 22791); 9 Sep 2006 13:19:03 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 09 Sep 2006 13:18:58 +0000 Received: by ug-out-1314.google.com with SMTP id u2so899635uge for ; Sat, 09 Sep 2006 06:18:55 -0700 (PDT) Received: by 10.66.224.3 with SMTP id w3mr1638893ugg; Sat, 09 Sep 2006 06:18:55 -0700 (PDT) Received: by 10.66.250.18 with HTTP; Sat, 9 Sep 2006 06:18:55 -0700 (PDT) Message-ID: Date: Sat, 09 Sep 2006 13:19:00 -0000 From: "dimax un" To: "Dave Korn" Subject: Re: Accessing ihex file Cc: binutils@sourceware.org In-Reply-To: <009301c6d411$505e7ce0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <009301c6d411$505e7ce0$a501a8c0@CAM.ARTIMI.COM> Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00063.txt.bz2 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 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.... > >