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.

Compiler/MSP430F5342: Compiler not allocating space for static variable

Part Number: MSP430F5342

Tool/software: TI C/C++ Compiler

I'm using Compiler version TI v16.9.7.LTS for compatibility reasons; I don't know if I can upgrade to a later version.

In one file, I have declared 5 static variables at file scope. Only space is being allocated for 4 of the variables. If I change the order of the declarations, a different set of the 4 (out of the 5) variables are allocated.

I have tried a number of workarounds (such as changing the order of the declarations, adding more static variables, etc.), but I have not yet found a workaround.

Is this a known issue? Is there a workaround?

Thanks in advance!