Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] LPC2129 Flash IAP "feature"

2004-10-22 by Richard Rauscher

Are you sure you specified the CCLK value correctly in the IAP call?
I've had success so far with partial page updates (for tracking device
state variables for restoration across reboots).  Of course, I haven't
done exhaustive testing, yet, so maybe I've just been lucky. 
 
Just out of curiosity, can you give a sample dataset that causes this
(flash/ram addresses and data, as well as your clock values)?  I'd like
to verify this potential problem before we hit production...
 
Thanks,
 
--rich
 
 
-----Original Message-----
From: Charles Manning [mailto:manningc2@...] 
Sent: Thursday, October 21, 2004 5:49 PM
To: lpc2000@yahoogroups.com; embeddednut
Subject: Re: [lpc2000] LPC2129 Flash IAP "feature"
 
On Friday 22 October 2004 02:12, embeddednut wrote:
> Does anyone know if it is allowed to program the same 512 byte sector
> multiple times (assuming that with each call bits only get cleared
> not set)?
>
> I currently have my RAM 512 byte buffer filled with 0xFF and write a
> string to the first 16 bytes, and program that into Flash (writing
> all 512 bytes).
>
> Works fine.
>
> Next step I am only modifying bytes 16 to 31 (which were 0xFF before)
> and try to write again to the same destination address. The call to
> write flash produces no error, however, if I read back from Flash I
> see that one of my just added bytes does not have the right value,
> one bit too many got changed from one to zero. I see a 't' (in flash)
> instead of a 'u' (which is in RAM).
>
> I tried different addresses to verify that it is really not the Flash
> memory, and yes, it happens also if I use a different address - same
> bit.
>
> Thanks,
>
> Peter

Partial page programming did not work for me either. I found that it 
sometimes works and sometimes corrupts. However the corruptions were
enough 
that I could never get 128k to load successfully.

Eventually I just modified my loader to program in 512byte pages.

-- Charles



Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129ivaaba/M=295196.4901138.6071305.3001176/
D=groups/S=1706554205:HM/EXP=1098492340/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com> 
 
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=220386562> 
 
________________________________

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/> . 


[Non-text portions of this message have been removed]

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.