This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: convert source file to hex for arm
- From: Simon Kallweit <simon dot kallweit at intefo dot ch>
- To: just_abhi22 at yahoo dot co dot in
- Cc: ecos-discuss at sourceware dot org
- Date: Fri, 21 Nov 2008 07:36:18 +0100
- Subject: Re: [ECOS] convert source file to hex for arm
- References: <844372.81378.qm@web94601.mail.in2.yahoo.com>
abhishek srivastava wrote:
cud any one tell me how to convert my souce file into hex file so that it could be moved onto my target h/w i.e. LPC 2148 ARM7TDMI-S
source file wud be in what extension ??
Read the binutils manpage, more specifically the manpage of the
"objcopy" utility. Use the version of your cross toolchain, e.g.
arm-eabi-objcopy or arm-elf-objcopy.
Something like
arm-eabi-objcopy -O ihex [infile] [outfile]
should do.
Simon
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss