On 31/07/2011 07:02, Oli Glaser wrote: > On 31/07/2011 00:38, SidPIC wrote: >> But this file writes to only 680 locations and one page as it is a demo >> illustration. Each page has about 1024 K words and I intend to write >> approximately 8K words to the NVM. But giving addresses higher than 1024 >> causes it to return an error as it goes beyond the limits of the page. I= was >> of the opinion that for addresses higher than 1024, > I haven't used this library, but I just checked the help file for it and > it appears to "only" support a maximum of 680 32-bit locations (so > address range of 0 to 679) > This is way more than most other PICs with "real" EEPROM have anyway, > e.g. PIC16Fxxxx often have 256 bytes EEPROM. > Can you not skip the EEPROM emulation and just store the information in > program memory directly? Or maybe use a separate I2C EEPROM memory chip? > > Looking again, I might be wrong - the help is not written too well (I=20 think english was not the authors first language) Hopefully someone who has used this library can chime in, but until then=20 I suggest having a go at changing the DATA_EE_SIZE define to a larger=20 value, and seeing if that makes any difference... Sorry if I have just confused matters more, on my way to sleep here so=20 I'm probably not making much sense :-) --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .