Keil Logo Arm Logo

Discussion Forum

IAP using 256 bytes

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
robert francis
Posted
5-Jan-2007 04:09 GMT
Toolset
ARM
New! IAP using 256 bytes

i am using LPC2148 ic
Can i do Iap with 256 bytes?

It returns error , NOT A MULTIPLE OF 4 OR INVALID when size 256 byte given.

No probelm when 512 byte size used

best regards
robert

Read-Only
Author
Reinhard Keil
Posted
5-Jan-2007 14:23 GMT
Toolset
ARM
New! RE: IAP using 256 bytes

Can you give a bit more information. Is this a error condition returned by an IAP function? If so what are the parameters?

Read-Only
Author
robert francis
Posted
9-Jan-2007 06:18 GMT
Toolset
ARM
New! RE: IAP using 256 bytes

ya .. it is returned by the IAP function ...
i have given the destination as an 0x4000 and an array as source address ... it works when 512 used instead of 256 ...

plz reply as soon as possoble ...

Read-Only
Author
Reinhard Keil
Posted
9-Jan-2007 06:53 GMT
Toolset
ARM
New! RE: IAP using 256 bytes

Can you post the call to the IAP function that you are doing (small program that allows us to duplicate it).

Read-Only
Author
robert francis
Posted
9-Jan-2007 07:15 GMT
Toolset
ARM
New! RE: IAP using 256 bytes

#define IAPENTRY ((IAP) 0x7FFFFFF1)
struct iap_in { unsigned int cmd; unsigned int par[4];
};
struct iap_in sIapInput;

int main()
{ char a[512];
unsigned long flash_addr = 0x4000;
int size = 256;
for(i=0;i<512;i++)
a[i]=i;

sIapInput.cmd = 51;
sIapInput.par[0] = (unsigned int) flash_addr;
sIapInput.par[1] = (unsigned int) data;
sIapInput.par[2] = size; sIapInput.par[3] = CCLK; IAPENTRY(&sIapInput, uiResult);
}

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.