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
RE: IAP using 256 bytes
Reinhard Keil
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
RE: IAP using 256 bytes
robert francis
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
RE: IAP using 256 bytes
Reinhard Keil
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
RE: IAP using 256 bytes
robert francis
#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;
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.