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.

how to add eusci_b_i2c.h/.c to existing MSP430FR2633

Part Number: MSP430FR2633
Other Parts Discussed in Thread: TLV320DAC3203, , MSP430WARE, CAPTIVATE-FR2633

Hi dear people!

I am developing a smal project around the MSP430FR2633 and the TLV320DAC3203. The MSP430 acting as I2C-master.
I would like to use the eusci_b_i2c.h, which I found in the driver library from other projects for this MSP430, but I hace 2 problems:

First, I am unable to add the library to the project. In the MSP430FR2xx_4xx_DriverLib_Users_Guide-2_91_13_01 I can read:

"4.1 Introduction
To add driver library to an existing project we recommend using CCS project templates. For driver library to work with project templates CCS must have discovered the driver library RTSC product. For more information refer to the installation steps of the release notes. CCS project templates adds the needed driver library source files and adds the driver library include path.
To apply a project template right click on an existing project then go to Source -> Apply Project Template as seen in the screenshot below."
However, CCS v12.3 does not show this menu-item. At least not in the Mac-Os version.
The second problem is, that the file eusci_b_i2c.h exists in the library, but the eusci_b_i2c.c is missing. There are only .h files there. Is there a reason for it? Where are the .c files?
I can find it in the library of the MSP430FR5xx_6xx, for instance, but I ignore if I can simply copy this into the library for the MSP430FR2633 and use it without changes.
Could you please give me some hints?
Thanks in advance,
Gustavo
  • Hey Gustavo!

    I can help you with this. To clarify, do you have either the driverlib or the MSP430ware installed in your User/ti or Applications/ti folder on your Mac? These SDKs contain projects you can easily import into CCS 12.3. This will have everything already configured for you in properties (which includes taking care of linking this .c file contained in the driverlib).

    To start your project, I would suggest importing a project from MSP430ware and replacing the main() with your code (along with copying in any other functions). The example I think would be best to start with is located in the SDK at msp430ware_3_80_14_01/driverlib/examples/MSP430FR2xx_4xx/eusci_b_i2c/CCS.

    Let me know if you need help importing this project with CCS.

    By the way, that C and H file are located inside MSP430ware at the folder msp430ware_3_80_14_01/driverlib/driverlib/MSP430FR2xx_4xx.

    Regards,

    Greg

  • Hi Greg,

    many thanks for the quick help.

    I was looking at the wrong place to start with projects. On the Resource Explorer, I got examples from:

    msp430ware_3_80_14_01/Development Tools/Captivate-FR2633/Peripheral Exmples/Register Level/MSP430FR2633

    The way you describe, going into msp430ware_3_80_14_01/Libraries shows other projects.

    Thank you for the info, it was very helpful!!!

    Sincerely,

    Gustavo