Yahoo Groups archive

Lpc2000

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

Message

Flash problem

2005-02-08 by mobilsiten

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.