EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

FLASH programing of LPC 2378

Started by Bhaskar Paul October 6, 2007
Hi All,
I am very new to ARM/NXP23xx boards and learning. I want to have some
information on how to program its Flash. If this type of question has been
previously discussed, then please send the reference.

I am using NXPs LPC2378 Kickstart board (of IAR) and IAR Workbench to
compile and download an application. This works fine, but I would like to
compile and download an application without using IAR workbench. Just after
creating a binary, download it some how and execute it. I have a USD JTAG
interface and no serial cable for this board. Can anybody tell me how to do
this?

I think what I am asking about is writing data in FLASH. If so, how to do
that?

Shall be waiting for the response.

Regards
Bhaskar
Lead Engineer, HCL, Noida
http://www.empresent.com/, http://hcl.in/

An Engineer's Guide to the LPC2100 Series

Bhaskar Paul wrote:
> Hi All,
> I am very new to ARM/NXP23xx boards and learning. I want to have some
> information on how to program its Flash. If this type of question has been
> previously discussed, then please send the reference.
>
> I am using NXPs LPC2378 Kickstart board (of IAR) and IAR Workbench to
> compile and download an application. This works fine, but I would like to
> compile and download an application without using IAR workbench. Just after
> creating a binary, download it some how and execute it. I have a USD JTAG
> interface and no serial cable for this board. Can anybody tell me how to do
> this?
>

To generate hex file for loading via Serial connection to LPC2xxx
bootloader:

With IAR 4.x:
Project Options (Atl+F7)
Linker
Extra Output Tab
Enable - Generate extra output file
Select Output format to say intel-extended
Change default Output file name to have .hex extension.

With IAR 5.x:
Project Options (Alt+F7)
Output Converter
Enable - Generate additional output
Motorola or intel-standard

> I think what I am asking about is writing data in FLASH. If so, how to do
> that?
>

Either of these tools can be used to load a hex file via serial cable:
http://www.standardics.philips.com/support/techdocs/microcontrollers/zip/flash.isp.utility.lpc2000.zip
http://www.esacademy.com/software/flashmagic/
If you want to load to Flash for debugging via JTAG try out my IAR4 port
of the NXP examples for the LPC23xx. It's my most popular download.
http://www.indyelectronics.com/code.lpc23xx.peripherals.iar.zip
Joel

The 2024 Embedded Online Conference