EmbeddedRelated.com
Forums

Re: Flash problem

Started by Gus February 8, 2005

--- In , "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" :-)



An Engineer's Guide to the LPC2100 Series



Ah, finally its solved.
Thanks for all the help!

--- In , "mobilsiten" <petertholander@h...> wrote:
>
> --- In , "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" :-)