EmbeddedRelated.com
Forums

how to find flash occupied by hex file in LPC2138

Started by "NAGARAJU R." January 24, 2008
Hi,
I am using local IDE for lpc2138 in which there is no facility to
know how much flsh has been used by our hex file which is loaded in
controller through uart0.I am not using jtag debugging, i am just
using uart0 for programming and debugging. But I want to know how
much flah memory has been occupied in controller flash memory and how
much is left. Please tell me how to calculate the size of flsh memory
left free so that i can add extra modules in program.I am using
lpc2000 flash utility to program.

An Engineer's Guide to the LPC2100 Series

Hi Nagaraj,

If the IDE you are using does not show the image/code size that is
generated, you can check the starting address and ending address of the
flash from your Hex file that is generated which you are laoding to
LPC2138 using the flash utility.

For details of the hex file format you can check for intel hex file
format.

Regards,

Dinesh.

________________________________

From: l... [mailto:l...] On Behalf
Of NAGARAJU R.
Sent: Thursday, January 24, 2008 2:01 PM
To: l...
Subject: [lpc2000] how to find flash occupied by hex file in LPC2138

Hi,
I am using local IDE for lpc2138 in which there is no facility to
know how much flsh has been used by our hex file which is loaded in
controller through uart0.I am not using jtag debugging, i am just
using uart0 for programming and debugging. But I want to know how
much flah memory has been occupied in controller flash memory and how
much is left. Please tell me how to calculate the size of flsh memory
left free so that i can add extra modules in program.I am using
lpc2000 flash utility to program.

DISCLAIMER:
-----------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------
which there is no facility to
> know how much flsh has been used by our hex file which is loaded in
> controller through uart0.I am not using jtag debugging, i am just
> using uart0 for programming and debugging. But I want to know how
> much flah memory has been occupied in controller flash memory and how
> much is left. Please tell me how to calculate the size of flsh memory
> left free so that i can add extra modules in program.I am using
> lpc2000 flash utility to program.

1. If the compiler is gcc, then use arm-elf-size.
2. If using flash magic then click on more info near hex file.
3. If using lpc21isp, it will automatically give flash size.

Warm Regards,

Mukund Deshmukh,
Beta Computronics Pvt Ltd.
10/1 IT Park, Parsodi,
Nagpur -440022 India.
Web site - http://betacomp.com

MEET US AT,

Chinaplas 2008, Shanghai, China.