Reply by jayasooriah May 8, 20062006-05-08
Kim,

Provided the flash utility reports the correct part ID, it may be that
the "flash limitation" message refers to odd sector size issue and
thus it may not mean that your code is too big to fit on-chip flash.

Try breaking up the hex file into sizes that will fit the sectors and
load one sector at a time.

Jaya

--- In l..., 赿 wrote:
>
> Hello, everyone.
>
> I download a hex file into my target board(LPC2214) using LPC2000
Flash Utility.
> When I downlaod my hex code to my target, Flash Utility annouces a
warnning message like follows.
> "Code in HEX file exceeds Flash Limitations!"
>
> My hex code is about 130KB size. But LPC2214 has the internal flash
rom(256KB).
> Why happen this problem?
>
> The size of hex code is about 40KB not using c library(printf,
scanf, etc,,,).
> In this case the warnning message isn't displayed.
>
> But using the c library the code size is about 140KB. And then the
warnning message is displayed.
>
> The size of hex code(140KB) is below the internal flash rom
size(256KB) of LPC2214.
> Why happen this problem.
> How can I solve this problem.
>
> Can you help me?
> I really want to solve this problem.
> Please help me.....
>
> Thank you
>
> -------------
> Dong-hwi Kim()
>
> Senior Engineer of FAE Team.
> Syncoam Co., Ltd.
> TEL : 82-31-788-7843
> FAX : 82-31-788-7846
> E-mail : dhkim@...
> -------------
>
>
>





An Engineer's Guide to the LPC2100 Series

Reply by Richard May 8, 20062006-05-08
While a hex file is ~1.9X the size of the actual program image, the only
way to tell for sure is to look at something like the map file that your
compiler generates and see what the memory range it is using for the code
section. Perhaps the compiler tool did not know that you are using a 2214
and used the wrong memory address range?

At 11:12 PM 5/7/2006, =?ks_c_5601-1987?B?sei1v8jW?= wrote:

>Hello, everyone.
>
>I download a hex file into my target board(LPC2214) using LPC2000 Flash
>Utility.
>When I downlaod my hex code to my target, Flash Utility annouces a
>warnning message like follows.
>"Code in HEX file exceeds Flash Limitations!"
>
>My hex code is about 130KB size. But LPC2214 has the internal flash
>rom(256KB).
>Why happen this problem?
>
>The size of hex code is about 40KB not using c library(printf, scanf,
>etc,,,).
>In this case the warnning message isn't displayed.
>
>But using the c library the code size is about 140KB. And then the
>warnning message is displayed.
>
>The size of hex code(140KB) is below the internal flash rom size(256KB)
>of LPC2214.
>Why happen this problem.
>How can I solve this problem.
>
>Can you help me?
>I really want to solve this problem.
>Please help me.....
>
>Thank you
>
>----------

// richard (This email is for mailing lists. To reach me directly, please
use richard at imagecraft.com)

Reply by May 8, 20062006-05-08
Hello, everyone.



I download a hex file into my target board(LPC2214) using LPC2000 Flash Utility.

When I downlaod my hex code to my target, Flash Utility annouces a warnning message like follows.

"Code in HEX file exceeds Flash Limitations!"



My hex code is about 130KB size. But LPC2214 has the internal flash rom(256KB).

Why happen this problem?



The size of hex code is about 40KB not using c library(printf, scanf, etc,,,).

In this case the warnning message isn't displayed.



But using the c library the code size is about 140KB. And then the warnning message is displayed.



The size of hex code(140KB) is below the internal flash rom size(256KB) of LPC2214.

Why happen this problem.

How can I solve this problem.



Can you help me?

I really want to solve this problem.

Please help me.....



Thank you



-------------

Dong-hwi Kim()



Senior Engineer of FAE Team.

Syncoam Co., Ltd.

TEL : 82-31-788-7843

FAX : 82-31-788-7846

E-mail : d...@syncoam.com

-------------