Page 1 of 1
Flash Cycle Tracking
Posted: Mon Jul 21, 2008 10:51 pm
by SleepyKeys
I have an idea. What do you guys think about adding a log/counter to the tuner program so that it keeps track of how many times a flash address has been burned?
We could also have an internal counter as well, so that it can send logs to the tuner program the next time it's connected? If the firmware has the ability to burn itself.
Or am I way off base ?
-sean
Re: Flash Cycle Tracking
Posted: Tue Jul 22, 2008 1:46 am
by jharvey
Sounds like a good idea to me. Although perhaps Fred is right and we should focus on the basics at first.
Is that an idea your able to write code for?
Re: Flash Cycle Tracking
Posted: Tue Jul 22, 2008 1:54 am
by SleepyKeys
jharvey wrote:Sounds like a good idea to me. Although perhaps Fred is right and we should focus on the basics at first.
Is that an idea your able to write code for?
He is right, no rush, just an idea that came to mind.
Probably, its actually pretty simple.
Re: Flash Cycle Tracking
Posted: Tue Jul 22, 2008 10:10 am
by Fred
Fantastic idea :-)
We can just dedicate 16 bits or 32 bits to the end of each block to record the burn count in. Of course updating firmware will blow it away, so you would want to have some mechanism to save it outside the device before a firmware upgrade, or perhaps include that as a build requirement when you build a new firmware :
Code: Select all
#define currentBurnCount 3456 // please set this number to one higher than your current count such that the firmware burn is included, thanks.
etc.
Fred.
Re: Flash Cycle Tracking
Posted: Sun Nov 02, 2008 7:42 pm
by Fred
Rather than do this in the flash itself, perhaps we should keep a small datamap with an unsigned long per 1k block in the eeprom? The eeprom is fine with being rewritten regularly and that way we keep full flash space available (which is fairly critical for the tables for example).
I guess I just thought up another block of work for Sean ;-)
(ie create some eeprom burning functions, i'll throw up a task for it now)
Fred.