Yahoo Groups archive

Lpc2000

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

Message

Re: Flash write errors

2006-01-26 by Guillermo Prandi

That's interesting, Tom. That would explain the programming errors 
from my PC, but the IAP errors are still puzzling. I can live with 
lpc21isp errors (provided I can retry a couple of times until it 
works). The problem is IAP. My device is supposed to keep track of 
things in its Flash memory, and my file system code is to be much 
more complex if it has to take IAP false writes like these into 
account.

Guille

--- In lpc2000@yahoogroups.com, Tom Walsh <tom@o...> wrote:
>
> Guillermo Prandi wrote:
> 
> >Hi. Are Flash write errors normal, i.e. a known issue? When 
> >programming my LPC2138 using the isp21lpc utility, every now and 
then 
> >I get a write error; a second attempt always succeed. This happens 
> >roughly once every 100 programming attempts. I thought it could 
have 
> >been a problem with my serial cable or some other hardware 
problem, 
> >but now I added an IAP function to my test program and I am 
getting 
> >errors too (i.e., saved data differs from the source data, 
although 
> >the IAP copy ram to flash command returns CMD_SUCCESS). I checked 
> >everything and I think I covered the normal requisites:
> >
> >  
> >
> 
> There seems to be something goofy going on with those utils.  I 
tried 
> using the lpc21isp (version 1.24) package on Linux, but it would 
> sometimes error out at random locations.  Not sure why.
> 
> I finally had to write an ISP loader for an LPC2138 to program an 
> LPC2106.  This loader source I then took an hung some RS232 
routines 
> onto it so I could also up load into the LPC2138 from Linux.  So 
far, my 
> loader works flawlessly.
> 
> Go figure.
> 
> TomW
> 
> 
> -- 
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware.net, http://cyberiansoftware.com
> "Windows? No thanks, I have work to do..."
> ----------------------------------------------------
>

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.