By using eeprom of ATMEGA2560 the values not getting tempered after reset but while

By using eeprom of ATMEGA2560 the values not getting tempered after reset but while using eeprom of atmega328 the values getting reset in eeprom. Please suggest something

Because the way ee2 is handled in hardware, I doubt it is corruption. However RAM corruption due to shortages between the two are more likely.

It’d help if you uploaded your code to http://gist.github.com so we could see what you’re doing to give you a suggestion. We aren’t mind readers or psychics. http://gist.github.com

I would suggest a cold beer.