EEPROM reset After few days

I'm using Atmega328p. i have a code to read value and then save it to EEPROM.
Of coarse when power off the atmega and then power on after few second i can read the value i stored before.

The problem is when power off the atmega a few days, then power on, the atmega earse the EEPROM, and i can't find my value.

using USBASP and Arduino IDE to program Atmega "Load Boatloader First then Load The code".

Thank You :slight_smile:

Which Arduino? Why the sequence of "Load Boatloader First then Load The code".

Using USBASP might wipe the EEPROM, not sure.

Please show your code (and use code tags, see How to use this forum - please read. - Installation & Troubleshooting - Arduino Forum, point #7.