Sign in

Not a member? | Forgot your Password?


Search lpc2000

Search tips

Subscribe to lpc2000

Free PDF Downloads

An Engineer's Guide to the LPC2100 Series

Advanced Linux Programming

What Every Programmer Should Know About Memory

Introduction to Embedded Systems

C++ Tutorial

Embedded Systems - Theory and Design Methodology

Microcontroller Programming and Interfacing

Introduction to Microcontrollers


More Free PDF Downloads

Discussion Groups

See Also

ElectronicsDSPFPGA

Find us on Facebook





Discussion Groups | LPC2000 | Help!How to create Hex file using IAR Embedded Workbench

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Help!How to create Hex file using IAR Embedded Workbench - djmike20_2005 - May 1 18:21:14 2009

Hi!
I'm new in using IAR IDE and I need to generate a .hex file to programm my chip(LPC2148) with LPC2000 Flash Utility(LPC210X_ISP.exe).
I observe that the output generated by IAR have elf-gcc extension or orther.
Can anyone help me?
Thank you!


_____________________________
 Free pdf download: An Engineer's Guide to the LPC2100 Series.


Re: Help!How to create Hex file using IAR Embedded Workbench - Chris Lawton - May 1 19:58:26 2009

Under Project\Options, select the Output Converter category. In the dialog for this category, check "Generate addtional output". This will enable a choice of addtional output files to be generated, including Motorola S-record & Intel hex.

Chris

--- In l..., "djmike20_2005" wrote:
>
> Hi!
> I'm new in using IAR IDE and I need to generate a .hex file to programm my chip(LPC2148) with LPC2000 Flash Utility(LPC210X_ISP.exe).
> I observe that the output generated by IAR have elf-gcc extension or orther.
> Can anyone help me?
> Thank you!
>



Re: Help!How to create Hex file using IAR Embedded Workbench - 42Bastian - May 2 3:59:50 2009

djmike20_2005 schrieb:
> Hi!
> I'm new in using IAR IDE and I need to generate a .hex file to programm my chip(LPC2148) with LPC2000 Flash Utility(LPC210X_ISP.exe).
> I observe that the output generated by IAR have elf-gcc extension or orther.
> Can anyone help me?

Check out the GNU tools that come with IAR 5 (assuming you use this
version). Then check the manuals for the GNU binutils.
--
42Bastian
------------------
Parts of this email are written with invisible ink.

Note: SPAM-only account, direct mail to bs42@...


Re: Help!How to create Hex file using IAR Embedded Workbench - jfpeyre - May 2 19:39:07 2009

As already stated in a previous reply, IAR can generate during build an HEX file :
you need to ask for a linker extra-output file in Intel-extended format (file extension will be .a79 in the .exe directory)

BUT

we found that this file does not match exactly what is programmed in the LPC flash memory with JTAG

This might not be a real issue but, to avoid this difference, we generate the HEX file the following way :

- we progamm the part with JTAG in debug mode.

- still in Debug mode, we use the memory save option to save the complete flash in an HEX file.

As I said, this trick might not be required but it works.
Jef



Re: Help!How to create Hex file using IAR Embedded Workbench - Mike Harrison - May 2 20:45:09 2009

On Sat, 02 May 2009 23:38:29 -0000, you wrote:

>
>As already stated in a previous reply, IAR can generate during build an HEX file :
>you need to ask for a linker extra-output file in Intel-extended format (file extension will be .a79 in the .exe directory)
>
>BUT
>
>we found that this file does not match exactly what is programmed in the LPC flash memory with JTAG
>
>This might not be a real issue but, to avoid this difference, we generate the HEX file the following way :

>From memory I think the difference is that it doesn't generate the sum of vectors that the
bootloader needs to recognise valid code - it expects the programmer to do this - I think Flash
Magic does this. Hex files from IAR certainly work in Flash Magic - I think I had to add code to do
the vector sum when I was writing my own IAP code though.