Hi guys! i have strange problem for read and write the eeprom on an atmega328p...
i included in the project, the header file eeprom.h
in the code i wrote:
if press the button
eeprom_write_word (100,100); //Save the number 100 in location memory 100
and then i wrote:
VAR = (int)eeprom_read_word(100);
when i press the button the write code go running... and i can see in "VAR" the value "100"
but if i reboot the micro i can't have the 100 value in the eeprom... like if that is a volatile location memory...
i use the same code in an atmega16 and work correctly...
where is the wrong?