This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR6989: MSP430 Memory Addressing

Part Number: MSP430FR6989


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.

**Attention** This is a public forum