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.

CCSTUDIO: .noinit section with Clang compiler

Part Number: CCSTUDIO


Tool/software:

I need to have some variables that survive a reset.
When using CCS with the GNU compiler, i was able to achieve this by:
__attribute__((section(".noinit"))) int variable;
But in a recent project, i need to use the Clang compiler. There seems no .noinit section by default.
How can i get a working .noinit section added when using the Clang compiler in CCStudio ?