Yahoo Groups archive

Lpc2000

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

Message

Re: Partial Flash Programming (ctd)

2004-12-09 by philips_apps

Hi Al,

even changing some bits from 1 to 0 would generate a wrong reading.
The LPC2000 devices have an error correction  ECC mechanism build in.
 This is part of the flash and will be written the first time (after
erasing) the block of 128-bits is programmed. Any changes thereafter
will result in reading garbage because the ECC mechanism will try to
correct anything changed after the initial write.

The idea was to write one 128-bit block after the other, NOT writing
the same 128-bit block several times. This is possible 16 times within
a 4k block. So 16 writes to 16 different sections of 128-bit each
within a 4k block, then erase the 4k block.

Hopefully this clarifies this issue a little more. 


--- In lpc2000@yahoogroups.com, onestone <onestone@b...> wrote:
> Flash bits can only be written to '0'. They erase to a '1' state. 
> Therefore unless you are only changing a couple of bits to '0' you MUST 
> erase flash everytime before reprogramming it.
> 
> Al
> 
> Leighton Rowe wrote:
> 
> > 
> > Concerning Philips Apps' post on Partial Flash Programming I
> > understand lpc flash memory can be updated 128 bits (minimum) at a
> > time, and that a each 4K area can be written 16 times (max).
> > 
> > (http://groups.yahoo.com/group/lpc2000/message/2681)
> > 
> > However, I'm currently having trouble updating 128-bit (quadword
> > aligned) locations in flash memory. The first write always
> > show up OK (as long as the location has all 1's), but on the 2nd
> > write (on the same location) results in some bit(s) not displaying
> > correctly.
> > 
> > Is it possible for me to re-write a 128-bit (quadword aligned) flash
> > locations? Or must I erase the flash location first? I can do the
> > second question, but I'm a little confused about how often flash
> > bits can change without an erase.
> > 
> > best regards,
> > Leighton
> > 
> > 
> > 
> > 
> > Yahoo! Groups Sponsor
> >
<http://us.ard.yahoo.com/SIG=129krqpo6/M=324847.5707095.6763799.3001176/D=groups/S=1706554205:HM/EXP=1102615194/A=2343726/R=0/SIG=12ibhs9he/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1102528794344024>

> > 
> > 
> > Get unlimited calls to
> > 
> > U.S./Canada
> > 
> >
<http://us.ard.yahoo.com/SIG=129krqpo6/M=324847.5707095.6763799.3001176/D=groups/S=1706554205:HM/EXP=1102615194/A=2343726/R=1/SIG=12ibhs9he/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1102528794344024>

> > 
> > 
> > 
> >
------------------------------------------------------------------------
> > Yahoo! Groups Links
> > 
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/lpc2000/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       lpc2000-unsubscribe@yahoogroups.com
> >       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>. 
> > 
> >

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.