Yahoo Groups archive

Lpc2000

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

Message

Re: Flash problem

2005-02-09 by mobilsiten

Ok, thanks this solved the problem. Still I would like to know how
this could totally messup the CPU....

Can someone tell me??

Peter

--- In lpc2000@yahoogroups.com, "Gus" <gus_is_working@y...> wrote:
> 
> hold the BL pin then try to connect using philips utility over the 
> serial port. If you can't chip is useless.
> 
> Gus
> 
> --- In lpc2000@yahoogroups.com, "mobilsiten" <petertholander@h...> 
> wrote:
> > 
> > Hi!
> > 
> > I'm pretty new on this and I think i screwed it up really good 
> directly
> > 
> > I made this code and tried it:
> > 
> > void writeToFlash()
> > {
> > 	command[0] = 54; 
> > 	iap(command,result,0x7FFFFFF0);
> > 		
> > 	command[0] = 55;
> > 	iap(command,result,0x7FFFFFF0);
> > 
> > 	//Prepare sector 
> > 	command[0] = 50;		// Command
> > 	command[1] = 8;			// Start sector
> > 	command[2] = 8;			// Stop sector
> > 	iap(command,result,0x7FFFFFF0);
> > 
> > 	//Erase sector 
> > 	command[0] = 52;		// Command
> > 	command[1] = 8;			// Start sector
> > 	command[2] = 8;			// Stop sector
> > 	iap(command,result,0x7FFFFFF0);
> > 
> > }
> > 
> > Offcourse it didnt work because I forgot to set the CCLK in the 
> erase
> > part. 
> > But this was not all, after this I cant access the CPU again. I get
> > this error message: "Memory Missmatch Adress: 0x00000000 Value = 
> 0x00
> > Expected = 0x18". 
> > Have I screwed up the CPU totally or is there anything I can do to
> > make it work again?
> > 
> > Please can someone help me?
> > 
> > Thanks

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.