I have set up variables in FRAM to store data, but when I try to write to them during runtime, the value in memory won't change. To set up the variables, I followed the steps at:
http://processors.wiki.ti.com/index.php/Creating_MSP430_FRAM_Variables_Using_CCS variables
My variable definitions looks like this:
#pragma SET_DATA_SECTION(".fram_vars")
unsigned int test;
unsigned int vals[DATA_LEN]; //array to store ADC input values
#pragma SET_DATA_SECTION()
And I've assigned data into these variables as usual, e.g.:
test = 1025;
vals[count++] = ADC12MEM0;
But when I run the program with the debugger and watch the value in the Expressions tab, it always reads as max value (65535). Why won't the value change?
