Post Go back to editing

Store a variable in Flash


I am working on a project which requires some variables to be retained i.e. the value should not changed even after I switch off the system. I thought of storing such variable in a flash. But didn't know how to go ahead in the code to make that variable sit in flash. Also I want that project to be also loaded from flash. I am able to create the loader file and successfully able to boot from flash. But I need to retain some of the variable of the project. Is there any way to achieve this i.e simultaneously store the variable as well as the whole project in a flash and boot it from there. I am using SC584 Eval Kit for the project. Any guidance or sample code will be helpful.

Thanking You

Anukul Anand