Open sarfata opened 6 years ago
may be (also) stored to the EEPROM as the SD-Card could be changed? (e.g. as 10 minutes Task or when log changes more than nn miles)
BTW does the EEPROM get harmed by writing to it too often? (Thinking also of storing some basic ini-settings to the EEPROM.....)
BTW does the EEPROM get harmed by writing to it too often?
Great question!
On the Teensy the EEPROM is not really an EEPROM. It's a "fake EEPROM" in RAM which is persisted to flash by a special peripheral in the micro-controller.
In the datasheet for the teensy 3.6 micro-controller (3.2 is similar) the interesting part about this is in section 3.4.1.4.
I could not find exactly what is the " EEPROM backup to FlexRAM ratio" used by Teensy but you would get at least 400,000 writes which is about 10 years. If you made a system that does not always write in the same place but instead pushes to different memory location, you could quickly get an even larger number of writes.
So yes it's possible but it needs to be looked at carefully.
I think the easiest way to do this if we decide to store the log value in this "EEPROM" is just to make sure we use a "backup to FlexRAM ration" of at least 128 which gives us a minimal number of writes of 1.26 million. That is 23 years at one write per 10 minute.
Suggested by Andreas Heertsch