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: Linking error of Unreferenced symbols I2C_config structure

Tool/software: Code Composer Studio

Hi,

Following pragma section is defined in GPIO_Board.c file and I want to move it to another cpp file. I would like to know how to define following pragma in cpp file? The same is not working in cpp file.

#if defined(__TI_COMPILER_VERSION__)
#pragma DATA_SECTION(I2C_config, ".const:I2C_config")
#pragma DATA_SECTION(i2cTivaHWAttrs, ".const:i2cTivaHWAttrs")
#endif

Regards,

Sandhya