hello everyone: I have a question.
I have an const array ,and its length is 142 words(284 bytes).I locate the array to the adress 0xC1F000,and I will write the on-chip flash to renew the array in my appliance.
But I found that the XC167CI can only write on-chip flash equal or less 128 bytes at one time. If I continue to programme the flash ,it does work!
What should I do?
Thank you!
for example:
extern const far int array[142];//the adress is 0xC1F000 int buf[64];//local variale erase(&array);//erase the whole section programme(&array,buf);//0-63 for (i=0;i<64;i++) buf=i+100; programme(&array+128,buf);//64-127,excute fail! for (i=0;i<14;i++) buf=i+200; programme(&array+256,buf);//128-142,excute fail!