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/MSP432P401R: copy MSP431 driverlib into project

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

is there a "clean" way of copying the MSP432 driverlib into my project. I want to added the lib in order to control every code within my project with git so the used version of the lib isn`t installation dependend.

I`ve looked at the headerfiles and the includes are like this:

#include <ti/devices/msp432p4xx/driverlib/...

so I`ve to change all includes in all files becomes of the changed folder?!

Is there a better way of solving this?

Thanks and best regards

Steffen

  • Steffen,

    Try the following:

    1) Add the driverlib directory to Include Options. Inside Project Properties, under Build -> ARM Compiler -> Include Options, add "${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/source/ti/devices/msp432p4xx/driverlib/"

    2) Inside Project Properties, under Build -> ARM Compiler -> Predefined Symbols, add "__MSP432P401R__"

    3) Also in Predefined Symbols, add "DeviceFamily_MSP432P401x"

    4) Add "#include <ti/devices/msp432p4xx/driverlib/driverlib.h>"

    5) Add "#include <ti/devices/msp432p4xx/inc/msp.h>"

    Hope this helps,
    Seong
  • Hi Seong,

    thanks for your answer but that`s not what I meant! I know how to include the MSP432 driverlib from the default external folder but I want to copy the lib from that folder into my project folder in order to freeze the current tested version of the lib. It is easy to copy the lib but all headers inside the lib are referring to the default ti folder with their includes. I can change every include in every header file but maybe there is a easier solution. That is the purpose of my thread.

    The MSP430 driverlib for example can be copied an included because the headers are not referring to a specific ti location.

    Thanks!

  • Hello Steffen,

    Please refer the following example in SimpleLink MSP432P4 SDK: ./examples/nortos/MSP_EXP432P401R/driverlib/driverlib_empty_project_from_source/

    Thanks,
    Sai
  • Hi Sai,

    thanks for the info but the example project is also pointing to the ti directories. I started to rename the includes but that is to much work because of the dependecies involved. So I´ve to live with it or I´ve to invest sometime to do this.

    Thanks!

**Attention** This is a public forum