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
#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); }