Hi there ,

Have you code protected the chip by witing $00 in the 5L config registor ? I don't know exactly why but a fully code protected chip fails to write into the EEPROMs. According to the manual there shouldn't be any problems protecting the data memory also. Might be its the table write or read issues of the Pbasic library loaded into the top of the program memory that causes this anomolly. Just leave the boot block (the first 512 bytes) unprotected (see the config bits register 5 in the PIC 18Fxx2 manual) and your problem should be solved.

Let us know if it worked.

Regards

Sougata