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/MSP430G2553: Running Example Code

Part Number: MSP430G2553

Tool/software: Code Composer Studio

Hi,

I am trying to get some of the example code from the "MSP430G2x53, MSP430G2x33, MSP430G2x13, MSP430G2x03 Code Examples (Rev. J)" found on the MSP430G2553 product page.

Can you give me some guidance on how to best get one of the examples running? I see there are four folders: Assembly_CCS. Assembly_IAR, C, and GCC_Makefile. 

I am trying to run the example "msp430g2xx3_uscib0_i2c_10.c" 

I tried opening composer studio and making a new project with msp430g2xx3_uscib0_i2c_10.c as the main.c file, but I encountered the build error that the build was missing the file "msp430.h". I found this file in the ccs directory on my C drive and copied it to my workspace. Now I am encountering the error:

"C:/Users/a0234143/workspace_v8/Ind Study v1/Inc/msp430.h", line 10: error #171: expected a declaration
"C:/Users/a0234143/workspace_v8/Ind Study v1/Inc/msp430.h", line 1908: fatal error #35: #error directive: "Failed to match a default include file"

I think I am putting the files together wrong or am missing something in setting up this example to run. Can you give me some guidance on how to easily get this example code running?

Thanks,

Kathleen

**Attention** This is a public forum