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/MSP430FR5969: usage of #pragma in CCS

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

I used #pragma to save data in FRAM.

It worked well in global variable, but It did not work on local variable. 

I have searched some issue about this in the forum but I could not find the exact answer. 

The forum jusyt said #pragma option does not work on local variable. 

Is there any way to save local variable in FRAM region? 

the error message were

for the #pragma PERSISTENT(x) -> "pragma can only be applied to a file level symbol"

for the #pragma DATA_SECTION(x, ".infoA") -> "pragma DATA_SECTION can only be applied to a file level symbol definition"

Best, 

Mirae