Yahoo Groups archive

Lpc2000

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

Thread

Flash Programming Question

Flash Programming Question

2004-06-15 by bwende1

Hallo

How many times can I program the flash memory of the lpc2106 ? Are 
there any restrictions?


Thanks...

Re: [lpc2000] Flash Programming Question

2004-06-15 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "bwende1" <bwende1@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, June 15, 2004 4:04 PM
Subject: [lpc2000] Flash Programming Question


> Hallo
>
> How many times can I program the flash memory of the lpc2106 ? Are
> there any restrictions?

The spec. says 10,000. It won't just stop working at 10,000, of course; you
might get 100,000 out of it. If you are constantly writing some data to it,
you might be better off with an external EEPROM. Some MCUs like the AVR have
EEPROM on the chip specifically for this purpose.

Leon

Re: [lpc2000] Flash Programming Question

2004-06-15 by Robert Adsett

At 05:06 PM 6/15/04 +0100, you wrote:
>The spec. says 10,000. It won't just stop working at 10,000, of course; you
>might get 100,000 out of it. If you are constantly writing some data to it,
>you might be better off with an external EEPROM.

If you are actually looking at writing that frequently I'd take a hard look 
at FRAM.  Faster with more write endurance (but it also has a possibly 
lower read endurance).

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

SV: [lpc2000] Flash Programming Question

2004-06-16 by Lasse Madsen

Hi All...

Is it possible to write in flash during regular operation ???

I thourgh it was only possible to write in flash with the bootloader, and
have cursed many times that the LPC2106 didnt have an eeprom for storing
memory variables but I guess these where false assumptions !?!?

Regards
Lasse M.

-----Oprindelig meddelelse-----
Fra: Leon Heller [mailto:leon_heller@...]
Sendt: 15. juni 2004 18:07
Til: lpc2000@yahoogroups.com
Emne: Re: [lpc2000] Flash Programming Question
Show quoted textHide quoted text
----- Original Message -----
From: "bwende1" <bwende1@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, June 15, 2004 4:04 PM
Subject: [lpc2000] Flash Programming Question


> Hallo
>
> How many times can I program the flash memory of the lpc2106 ? Are
> there any restrictions?

The spec. says 10,000. It won't just stop working at 10,000, of course; you
might get 100,000 out of it. If you are constantly writing some data to it,
you might be better off with an external EEPROM. Some MCUs like the AVR have
EEPROM on the chip specifically for this purpose.

Leon




Yahoo! Groups Links

Re: SV: [lpc2000] Flash Programming Question

2004-06-16 by Karl Olsen

--- In lpc2000@yahoogroups.com, "Lasse Madsen" <lm@h...> wrote:

> Is it possible to write in flash during regular operation ???
> 
> I thourgh it was only possible to write in flash with the 
bootloader, and
> have cursed many times that the LPC2106 didnt have an eeprom for 
storing
> memory variables but I guess these where false assumptions !?!?

You can write to flash from application, see the Flash IAP section in 
the manual.  Caveats are:

When the IAP functions for erasing or writing flash run, the flash 
itself isn't accessible.  This means that you must either disable all 
interrupts around the IAP calls, or copy the interrupt handlers and 
vectors to RAM.

Also remember that the IAP functions use the 32 top bytes of RAM, in 
addition to some stack space.  So don't initialize stack pointers to 
the very top of RAM.

If you use gcc, be sure to compile either as Thumb, or with 
interworking support, so that it uses BX to call the IAP entry at 
0x7FFFFFF1.  If not, gcc will use a MOV PC instruction which doesn't 
switch from ARM to Thumb mode.

Karl Olsen

Re: Flash Programming Question

2004-06-16 by jpsg123

--- In lpc2000@yahoogroups.com, "bwende1" <bwende1@y...> wrote:
> Hallo
> 
> How many times can I program the flash memory of the lpc2106 ? Are 
> there any restrictions?
> 
> 
> Thanks...

On a related topic, can somebody post how much current is used when you're flashing? I 
can't seem to find this info in the datasheets. Thanks.

-John G-

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.