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/MSP430G2230: MSP430G2230 and I2C

Part Number: MSP430G2230
Other Parts Discussed in Thread: MSP430WARE

Tool/software: Code Composer Studio

I make a small application interfacing an MSP430G2230 through I2C communication.

I get 74 errors when I try to build the application due to unidentified items in TI_USCI_I2C_master.c code?

My TI_USCI_I2C_master.h contains:

#ifndef USCI_LIB
#define USCI_LIB

Where is this defined?

Has somebody experience in this matter?  

 

  • Hi Robert,

    it looks like you have used a code file requiring DriverLib libraries but have not included them. I would recommend to use and import such an I2C example, to have a solid project base and then start to convert it to your specific needs.

    Furthermore, the code you seems to be using is from a device having the USCI communication interface on chip, while the derivative you've picked, is only equipped with the simpler USI interface. Please check on this.

    You can find I2C code examples for the USI in the Code Composer Resource Explorer in the MSP430Ware package.

    Best regards

    Peter