Other Parts Discussed in Thread: MSP430FR5738
Hi
I imported a working project (written in texteditor, compiled by a makefile before) into CCS. My command to store an array in FRAM was
__attribute__((section(".text"))) uint8_t f_variable[256];
Now CCS told me that it doesn't unterstand the command, so I begun reading about all the pragmas and FRAM best practices. I tried it with different combinations of
#pragma persistent(f_variable)
#pragma DATA_SECTION(".text")
uint8_t f_variable[256];
but it didn't work.
For #pragma persistent I get the following warning: #163-D unrecognized #pragma, for #pragma DATA_SECTION(".text") I get #830-D error processing pragma DATA_SECTION, verify format and when I try #pragma DATA_SECTION(f_variable, ".text") I get the following compile error [E0300] Cannot redefine this section name.
Do I have to import some files to enable the persistent pragma or what can I do to make my array persistent?