saving settings then re-flashing
Posted: Mon Oct 13, 2014 12:10 pm
Ok, so I had a crazy idea, and I wanted the community input. My idea falls along the "save and retrieve user parameters" subject. First, I need to save several structures in memory before I load my program. If I make a loader program that will save a struct to NV RAM, and then I reflash the system with a new program, will it wipe or preserve the NV RAM data? I guess I'm asking if the software loader clears the NV RAM or if that's something only I can do manually. I don't want the data stored in the NV RAM to be visible in my code, only accessed when the code is run. Basically a form of idiot-proofing so to speak. Long story. Possible?
Secondly, and here's the crazy in me... can I store a small class of "hidden" functions in NV RAM and not only retrieve but also initialize and execute them? Total newb question to ask, I know. But it's been wiggling around in my brain for a week and it almost seems as if it could be possible... to me at least... Someone fill me in if this is possible or if I'm dreaming. I haven't tried this yet, mostly because I'm still trying to understand how to implement it once I retrieve it.
Thanks for the input folks!
Secondly, and here's the crazy in me... can I store a small class of "hidden" functions in NV RAM and not only retrieve but also initialize and execute them? Total newb question to ask, I know. But it's been wiggling around in my brain for a week and it almost seems as if it could be possible... to me at least... Someone fill me in if this is possible or if I'm dreaming. I haven't tried this yet, mostly because I'm still trying to understand how to implement it once I retrieve it.
Thanks for the input folks!