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/SIMPLELINK-MSP432-SDK: Changing the Build Settings->General->Products to SimpleLink MSP432 SDK does not change the Build Settings->GNU Compiler->Summary of flags set. Seems like a bug....

Part Number: SIMPLELINK-MSP432-SDK


Tool/software: Code Composer Studio

I am trying to use I2C to read data from two sensors and store it in Flash memory. I have used the example project i2cTMP007_MSP_EXP432P401R_tirtos_ccs and it works fine. I am able to receive data from both the sensors.

Next I wanted to store this data in flash memory and I used the example project flash_program_memory_MSP_EXP432P401R_nortos_ccs and it works fine for storing randomly generated data to the flash.

However when I try to combine the two codes I get an error message "Failed to match a default include file" when including the driverlib.h header file. 

I have added the include paths missing from the project but it still shows the same error message. I have added pictures below for reference. 

My objective is to read live data continuously from two sensors using I2C and store it in flash memory. Please tell me how I can fix the bug or direct me to an example code that would help me do this.

I am new to CCS and I am not from computer science background so a more detailed explanation would help. 

error message: 

Description Resource Path Location Type
#35 #error directive: "Failed to match a default include file" .ccsproject /i2ctmp007_MSP_EXP432P401R_tirtos_ccs line 76, external location: C:\ti\simplelink_msp432p4_sdk_2_30_00_14\source\ti\devices\msp432p4xx\inc\msp.h C/C++ Problem

  • Aditya Varma Muppala said:
    However when I try to combine the two codes I get an error message "Failed to match a default include file" when including the driverlib.h header file. 

    Did you create a new project for combining the two, or did you use one of the example projects as a starting point to build upon? It is always easier to use one of the examples to start with.

    Aditya Varma Muppala said:
    #35 #error directive: "Failed to match a default include file" .ccsproject /i2ctmp007_MSP_EXP432P401R_tirtos_ccs line 76, external location: C:\ti\simplelink_msp432p4_sdk_2_30_00_14\source\ti\devices\msp432p4xx\inc\msp.h C/C++ Problem

    The error is coming from the file C:\ti\simplelink_msp432p4_sdk_2_30_00_14\source\ti\devices\msp432p4xx\inc\msp.h. If you take a look at this file you will see the error directive at line 76. The error will be thrown if none of the device name symbols are defined.

    If you look at the flash_program_memory example, notice that there are couple of predefined symbols. Make sure that these are defined in your project as well. In general, if you are creating a new project you would want to match up as much of the compiler and linker options as possible with the examples.

  • I used an example from the resource explorer itself but it was missing the symbol as explained above.
    Thanks for resolving the issue, the error does not show up anymore.

    I would also like to thank you for your swift response!

    Regards,
    Aditya