We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Can you give a bit more information. Is this a error condition returned by an IAP function? If so what are the parameters?
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 ...
Can you post the call to the IAP function that you are doing (small program that allows us to duplicate it).
#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); }