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/MSP430FR5989: msp430 gcc compiler warning about a persistent variable

Part Number: MSP430FR5989

Tool/software: Code Composer Studio

Hello,

I'm trying to use a persistent counter in my code. Although I did initialize it, the msp430 gcc compiler gives me this warning:

 

variable 'T_Counter' was declared persistent and should be explicitly initialized [-Wattributes]

and here how I initialize that variable :

 uint16_t __attribute__((persistent)) T_Counter =0;

what is causing this warning and how do I fix it ?

I appreciate any help.