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.

MSP430-IEC60730-SW-PACKAGE: PC Test Code Error

Part Number: MSP430-IEC60730-SW-PACKAGE

Hi,

#ifdef __ICC430__
#pragma location="PC_TEST_SECTION_1"
void* IEC60730_PC_TEST_pcTestFunction1(void){
return((void *)IEC60730_PC_TEST_pcTestFunction1);
}
#else
#pragma CODE_SECTION(IEC60730_PC_TEST_pcTestFunction1,".pc_test_section_1")
void* IEC60730_PC_TEST_pcTestFunction1(void){
return(IEC60730_PC_TEST_pcTestFunction1);
}
#endif

This part of the code throws the following error

"error #821: badly formed pragma"

Pls help us in solving this.

Note: It is a .cpp project

**Attention** This is a public forum