The DigiX > DigiX Project Ideas
DigiX extensive I2C EEPROM library
digistump:
@dfarrell Are you trying it using the examples included in the DigiX software?
mikkelg:
i tried using this library and it works like a charm! Good work :)
I have one question though since i have observed that my data is stored in the EEPROM but only until the arduino restarts. If i e.g. program the arduino again or cut power and plug it back in, the loaded values will be nothing near what i stored before. Is this a setting i am missing somewhere that makes the arduino store the values between resets?
TimO:
--- Quote from: mikkelg on March 19, 2014, 01:25:03 pm ---I have one question though since i have observed that my data is stored in the EEPROM but only until the arduino restarts. If i e.g. program the arduino again or cut power and plug it back in, the loaded values will be nothing near what i stored before. Is this a setting i am missing somewhere that makes the arduino store the values between resets?
--- End quote ---
I haven't checked the datasheet for this CPU, but the AVR AT90USB1286, which I've been using a lot recently, has a fuse bit "EESAVE" which has to be programmed to retain the EEPROM contents after a Chip Erase. It could be that something similar is going on here.
gogol:
That has nothing to do with it at all. The ATSAM3X8E has no build in EEPROM. The EEPROM is on the board connected via I2C. The problem was, that the TO was writing 4 byte long integers with one byte overlap to the EEPROM.
TimO:
--- Quote from: gogol on April 10, 2014, 11:43:44 am ---... The ATSAM3X8E has no build in EEPROM. ...
--- End quote ---
<Doh> I should have checked things!
Navigation
[0] Message Index
[*] Previous page
Go to full version