#pragma RETAIN(bslkey) #pragma DATA_SECTION(bslkey, "BSLSKEY") const WORD bslkey = 0xAA55;
How can i write a equivalent in GCC compiler for the above TI compiler code in CCS6.0
MCU:MSP430F2410
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.
#pragma RETAIN(bslkey) #pragma DATA_SECTION(bslkey, "BSLSKEY") const WORD bslkey = 0xAA55;
How can i write a equivalent in GCC compiler for the above TI compiler code in CCS6.0
MCU:MSP430F2410
GCC allows you to specify several variable attributes. The ones of interest here are used (for RETAIN) and section (for DATA_SECTION). If you use the latest msp430 gcc release, which is based on GCC version 4.9.1, then you can read about those attributes at https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Variable-Attributes.html#Variable-Attributes .
Thanks and regards,
-George