Yahoo Groups archive

Lpc2000

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

Thread

Copy RAM to Flash byte long

Copy RAM to Flash byte long

2004-12-23 by sifiland

HI,

I want to write Intel extended the formatted Hex files over RS232 in 
the Flash.
Can I write the Flash byte for byte by IAP COMMANDS?  Or do I have 
each time 512 byte up-broad?  

Thanks.

Re: Copy RAM to Flash byte long (is partial flash programming)

2004-12-23 by philips_apps

Hello,

please check this one out:
(http://groups.yahoo.com/group/lpc2000/message/2681)
and there is another thread look for 
"Partial Flash Programming" message 4333

Philips_Apps

--- In lpc2000@yahoogroups.com, "sifiland" <sifiland@y...> wrote:
Show quoted textHide quoted text
> 
> HI,
> 
> I want to write Intel extended the formatted Hex files over RS232 in 
> the Flash.
> Can I write the Flash byte for byte by IAP COMMANDS?  Or do I have 
> each time 512 byte up-broad?  
> 
> Thanks.

Re: [lpc2000] Re: Copy RAM to Flash byte long (is partial flash programming)

2004-12-25 by Charles Manning

I certainly did not get good results using this advice.

I tried doing writes of 64 bytes at a time using partial page programming. 
That did not work for me.  It **almost** worked, but I'd get bits flipped 
bits every now and then (enough that out of approx 20 attempts I never got a 
whole 64kB to load correctly).

The only thing that I could get to work reliably was programming whole 
512-byte areas at a time. This, I have never seen fail with approx. 100 
reprogrammings of 64kB.
Show quoted textHide quoted text
On Friday 24 December 2004 11:21, philips_apps wrote:
> Hello,
>
> please check this one out:
> (http://groups.yahoo.com/group/lpc2000/message/2681)
> and there is another thread look for
> "Partial Flash Programming" message 4333
>
> Philips_Apps
>
> --- In lpc2000@yahoogroups.com, "sifiland" <sifiland@y...> wrote:
> > HI,
> >
> > I want to write Intel extended the formatted Hex files over RS232 in
> > the Flash.
> > Can I write the Flash byte for byte by IAP COMMANDS?  Or do I have
> > each time 512 byte up-broad?
> >
> > Thanks.
>
>
>
> Yahoo! Groups Links
>
>
>

Re: Copy RAM to Flash byte long

2005-01-04 by Mark Butcher

I have had no problems with programming as follows:
1. Copy the present contents of the 512 Byte block where changes are 
to be made (careful with boundary starting and ending at modulo 
addresses).
2. Modify the bytes to be changed resp. programmed.
3. Program the 512 block using IAP command.

Restrictions:
- Only allows bit changes from 1 to 0
- Only allows one change in 16 Byte block (due to error checking)
- Only allows about 16 changes in block - due to programming 
stresses - before block must be deleted
- Interrupt must be disable or interrupt code in RAM while IAP 
command executing.

Conclusion:
These restrictions are no problem when programming. For more details 
see the detailed FLASH description as suggested by Philips Apps.

Note: I believe that Philips suggest programming non-changes bits 
to '1' but I couldn't find this text again when quickly looking in 
the document. In any case I never had problems with this strategy.

regards

Mark Butcher
www.mjbc.ch



--- In lpc2000@yahoogroups.com, "sifiland" <sifiland@y...> wrote:
> 
> HI,
> 
> I want to write Intel extended the formatted Hex files over RS232 
in 
Show quoted textHide quoted text
> the Flash.
> Can I write the Flash byte for byte by IAP COMMANDS?  Or do I have 
> each time 512 byte up-broad?  
> 
> 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.