Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: LPC2138FBD64 - not possible to run from Flash and use IAP?

2005-10-27 by Guillermo Prandi

Hi, Bob... I am worried about what you just wrote. I'm in the middle 
of an urgent project and I took for granted that I can use IAP while 
my code runs from Flash without giving it a second tought. Can you 
please explain the concept a little more? I'm reading the LPC2138 
user's manual at 20.4.10 and it suggests it is possible as long as 
you disable interrupts while using IAP (or make interrupts to run 
from RAM).

Guille

--- In lpc2000@yahoogroups.com, "lpc2100_fan" <lpc2100_fan@y...> 
wrote:
>
> Hi Patrick,
> 
> it is possible to store data while running from the internal RAM but
> it is not possible to run a program from Flash while programming
> another part of the Flash.
> 
> The Keil C-Compiler is a good choice but it is not freeware. There 
is
> a version that allows you to write 16k of your code and can be
> downloaded from www.keil.com
> 
> Size of Blinky, a few hundred bytes, unless you use such a library
> function like printf, then we are immediately talking a couple 
kbytes.
> 
> There is a free compiler (GNU) and if you take ten minutes to search
> this forum you will find many references to that compiler as well. 
One
> warning, the library functions of the GNU are very big and increase
> the size of a program a lot compared to a compilers you have to buy.
> For the application you mention (sounds like a data logger), the GNU
> compiler is perfect, actually the 16k of the Keil compiler might be
> enough to do the function you mentioned. 
> 
> Bob
> 
> --- In lpc2000@yahoogroups.com, "Patrick Doll" <Patrick-doll@g...> 
wrote:
> >
> > Hi,
> > 
> > I have three (easy) questions:
> > 
> > 1.)Is it possible to store Data in the nonvolatile internal Flash 
memory
> > region of the LPC2138FBD64 by a program running on the MCU? I want
> to store
> > serial values coming from the SPI Interface (~100KBytes). Or do I
> need an
> > external memory chip?
> > 
> > 2.)I'm looking for a C-Compiler
> > In the book "The Insiders guide to the Philips ARM7-Based MCUs" 
the
> Keil ARM
> > Compiler is mentioned. Is there any experience with this 
Compiler? Is it
> > freeware? Is it possible to use it for the LPC2138FBD64? Or do you
> suggest
> > another compiler?
> > 
> > 3.)At the moment I'm looking for the right MCU, so the size of the
> program
> > space is a very important part. How much memory is used by a 
simple
> program?
> > (e.g. let an led blink incl. startup code + ...?).
> > 
> > Thank you
> > 
> > -- 
> > Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
> > DSL-Flatrate für nur 4,99 Euro/Monat*  
http://www.gmx.net/de/go/dsl
> >
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.