The problem I am after must be one that has been solved a thousand times before, but I do not find any library or similar. Before I start rolling my own code, let me know if you have an idea.
In my program, I have a number of configuration values of different lengths (known at compile time) which are occasionally updated. I intend to store them in the infoB..infoD segments of an MSP430F5310.
Writing into flash is something I have done before, no worries here. However, I do not want to erase an entire segment whenever a bit has changed, but I want to write each new value immediately instead of collecting all changes over a period of time and then flushing the resulting cache.
Does someone know of a library/demo/whatever which has a more elegant solution to this problem? I started with some code, but soon ran into the problem of fragmentation. Before I start reinventing the wheel: how are you coping with this task?
Max