Tool/software: Code Composer Studio
Hi,
I try to locate variables to a specific memory location but it isn't working
Here is my code:
#pragma SET_DATA_SECTION(".infoD")
int x;
#pragma SET_DATA_SECTION()
int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
x = 5;
return 0;
}
Here is my logfile(this is a hex TI-txt output) result:
Why the variable, x is not on the memory location that I set? I have edit the Erase options to Erase main and information memory and it still don't work.
I am using CCSv9 and MSP430 compiler v18.12.2. Thank you.






