i used the example project to write and read from eeprom. but on reading i am getting 0xff only.
Can you tell us a bit more (which eeprom, type, interface etc)? Or can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file (do NOT use chrome, that still may not work).
If you use external EEPROM, better upload the circuit diagram as well.