Yahoo Groups archive

Lpc2000

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

Message

Re: Flash problem

2006-05-08 by guilherme_ferraz

I´ve got the same problem.
If I want to erase the sector, an undef interrupt occurs, if I want to
write to a sector, A SRC_ADDR_ERROR occurs.

Could you tell me what did you do?
Thanks.


--- In lpc2000@yahoogroups.com, "mobilsiten" <petertholander@...> wrote:
>
> 
> 
> Ah, finally its solved. 
> Thanks for all the help!
> 
> --- In lpc2000@yahoogroups.com, "mobilsiten" <petertholander@h...>
wrote:
> > 
> > --- In lpc2000@yahoogroups.com, "Leighton Rowe" <leightonsrowe@y...> 
> > wrote:
> > > 
> > > > 	//Write
> > > > 	command[0] = 51;			// Command
> > > > 	command[1] = 0x0000E000; 	// Start adress
> > > > 	command[2] = source;		// Data
> > > > 	command[3] = 512;          // Size of data 512 | 1024 | 4096 
> > > | 8192	  	
> > > > 	command[4] = 60000;  		// System clock frekquency 
> > > in (CCLK) KHz
> > > 
> > > It looks like everything but the write command is ok. Just for 
> > > clarity, what you're using for the variable "source"?
> > 
> > source is a pointer to a char array with the data i want to write to 
> > the flash in this case the famous "Hello world" :-)
>

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.