There are 10 int values that I would like to store in the flash. These are the user settings of a given product.
Question is how to read variables from flash and is there any proper way to decide at which location in flash should I store my data? Right now I have taken the location 0x1000 because I knew it was empty by seeing the memory allocation window but this seems crude way of doing it.
CODE:
int variable_flash;//GLOBAL VARIABLE
int main() {
int *ptr;
ptr=0x1000; //this is the address in flash from where I want to read ....GETTING ERROR ON THIS LINE
[7] ptr=0x1000;
[8] ^~~~~