Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

IAR Embedded Workbench and .Hex files

IAR Embedded Workbench and .Hex files

2004-10-13 by Paul Maddox (Mail LIsts)

Dear All,
 
 Please excuse what might be a really daft question but,
I've just got my TinyARM EB40 board, installed the LLPC ISP software and IAR
Embedded workbench. Written a simple 'hello world' program (LED flash),
compiled and all is well.. Almost.. The output of the IAR Compiler is a .elf
or .r79 file, the LPC ISP is expecting a .hex file, so... How do I get IAR
to generate this .hex file, so I can program my TinyARM?

  Many thanks
Paul Maddox

Re: IAR Embedded Workbench and .Hex files

2004-10-13 by douglasbolton

--- In lpc2000@yahoogroups.com, "Paul Maddox (Mail LIsts)" 
<Paul.Maddox.Mail-list@S...> wrote:
> Dear All,
>  
>  Please excuse what might be a really daft question but,
> I've just got my TinyARM EB40 board, installed the LLPC ISP 
software and IAR
> Embedded workbench. Written a simple 'hello world' program (LED 
flash),
> compiled and all is well.. Almost.. The output of the IAR Compiler 
is a .elf
> or .r79 file, the LPC ISP is expecting a .hex file, so... How do I 
get IAR
> to generate this .hex file, so I can program my TinyARM?
> 
>   Many thanks
> Paul Maddox


Go to project/options/linker/output you can then select your required 
output format.

Doug

Re: [lpc2000] IAR Embedded Workbench and .Hex files

2004-10-13 by Robert Adsett

At 11:36 PM 10/13/04 +0100, you wrote:
>  Please excuse what might be a really daft question but,
>I've just got my TinyARM EB40 board, installed the LLPC ISP software and IAR
>Embedded workbench. Written a simple 'hello world' program (LED flash),
>compiled and all is well.. Almost.. The output of the IAR Compiler is a .elf
>or .r79 file, the LPC ISP is expecting a .hex file, so... How do I get IAR
>to generate this .hex file, so I can program my TinyARM?

If IAR is based on the GNU chain look for an executable called 
objcopy.  It's part of the GNU binutils and performs conversions between 
various formats.   The call I use as part of my link is

arm-elf-objcopy -O ihex infile outfile

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.