[En-Nut-Discussion] EEPROM use
Ayman Hendawy
ayman.hendawy at gmail.com
Sun May 13 10:16:37 CEST 2012
Hi,
I have Ethernut 1.3H and using NUT/OS 4.8.9, I'm trying to save some
buffers in EEPROM so I'm using those two APIs as following:
uint8_t save = 99;
uint8_t load;
OnChipNvMemSave ( 512, &save, sizeof(uint8_t));
OnChipNvMemLoad ( 512, &load, sizeof(uint8_t));
But I never read 99 from load, I never read a correct value, I always read
garbag data,
may be the problem in the addresses, but I tried to change it many times
with different values with no result,
By the way may be the problem in the make file, how can I update make file
to create the necessary file.
Thanks
--
Best regards
Ayman Hendawy
Embedded system engineer
Cairo,Egypt
Phone: +20110406659
More information about the En-Nut-Discussion
mailing list