Reply by Mike Harrison May 2, 20092009-05-02
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.

An Engineer's Guide to the LPC2100 Series

Reply by jfpeyre May 2, 20092009-05-02
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

Reply by 42Bastian May 2, 20092009-05-02
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@...
Reply by Chris Lawton May 1, 20092009-05-01
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!
>

Reply by djmike20_2005 May 1, 20092009-05-01
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!