This is the iap function:
void iap (unsigned *cmd,unsigned *rslt,unsigned entry)
{
asm("mov r15,r2");
}
Its taken from Keils "exercises"
Peter
--- In lpc2000@yahoogroups.com, "Leighton Rowe" <leightonsrowe@y...>
wrote:
>
> > void writeToFlash()
> > {
> > command[0] = 54;
> > iap(command,result,0x7FFFFFF0);
> >
> > command[0] = 55;
> > iap(command,result,0x7FFFFFF0);
>
>
> I'd really like to see how u defined your iap function pointer.
>
> Regardless, ensure that the IAP function pointer switches to thumb
> mode and takes 'only' 2 arguments (Command & Result). Note that
> function pointer must go to address 0x7ffffff1 (not 0x7ffffff0).
>
> Look closely at the "IAP Command" section in "Flash Memory System &
> Programming" in your User Manual.
>
> LeightonMessage
Re: Flash problem
2005-02-09 by mobilsiten
Attachments
- No local attachments were found for this message.