I'm looking into PROGMEM programming, should be doable, however I have a specific requirement: I would like to be able to change the value of the variable (in this case, an integer) at run-time in such a way that it survives a board reset. It thus definitely need to be in flash mem, but the PROGMEM examples all seem to talk about consts.
EEPROM is only wiped if you upload and run a Sketch that wipes it.
I presume someone can confirm it but that was what I thought also. If you are wanting to upload new sketches and keep the same number data then maybe SD is a better way to go as well.
Just out of interest, what are you wanting to store and recall on different sketches?
Did you think of sending the data to an SD card as .csv (.txt and change it on pc) to make it easy to open on in Excel?
Then you could just wipe the SD card instead of clearing EEPROM.
In this case it would have been too much investment in time and materials. I needed something quick and simple to determine if the application would work on batteries.
The SD card and supporting circuitry would consume energy reducing the run time. I wanted the test to be as close as possible to the final application.
I wanted to get some experience using the EEPROM library.