Yahoo Groups archive

Lpc2000

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

Thread

Writing 1 bit/byte to the Flash

Writing 1 bit/byte to the Flash

2006-05-02 by vlads4377

Hi,

Due to LPC user manual I can write to flash in resolution of 512 bytes 
and more (That's mean not less than sector).

I'm looking for way to change single bit (from 1 to 0), or at least 
one byte.

Any idea welcomed.

Thanks.

Re: [lpc2000] Writing 1 bit/byte to the Flash

2006-05-02 by Dominic Rath

You could mask out bits you don't want to change with 0xff, but that only 
works up to the CRC granularity. IIRC every 16 byte are protected by a CRC 
value, and thus can't be written more than once, as the CRC would have to be 
re-written.

Regards,

Dominic
Show quoted textHide quoted text
On Tuesday 02 May 2006 08:28, vlads4377 wrote:
> Hi,
>
> Due to LPC user manual I can write to flash in resolution of 512 bytes
> and more (That's mean not less than sector).
>
> I'm looking for way to change single bit (from 1 to 0), or at least
> one byte.
>
> Any idea welcomed.
>
> Thanks.

Re: Writing 1 bit/byte to the Flash

2006-05-02 by vlads4377

Thank you !!!

does it mean that I can re-write sector and to put the bytes that I 
don't want to change as 0xff.

btw, I want to re-write it only once.

Thanks,
Vlad

--- In lpc2000@yahoogroups.com, Dominic Rath <Dominic.Rath@...> 
wrote:
>
> You could mask out bits you don't want to change with 0xff, but 
that only 
> works up to the CRC granularity. IIRC every 16 byte are protected 
by a CRC 
> value, and thus can't be written more than once, as the CRC would 
have to be 
> re-written.
> 
> Regards,
> 
> Dominic
> 
> On Tuesday 02 May 2006 08:28, vlads4377 wrote:
> > Hi,
> >
> > Due to LPC user manual I can write to flash in resolution of 512 
bytes
> > and more (That's mean not less than sector).
> >
> > I'm looking for way to change single bit (from 1 to 0), or at 
least
Show quoted textHide quoted text
> > one byte.
> >
> > Any idea welcomed.
> >
> > Thanks.
>

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.