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: msp.h "Failed to match a default include file"

Part Number: MSP432P401R

Tool/software: Code Composer Studio

I have a similar problem to one of the previous posts.

I tried the quick fix solution in previous post by trying to modify the msp.h header file to point to the msp432p401r.h  file but this fix does not work for my application.

I am using the LCD example display_MSP_EXP432P401R_norton_ccs from the Resource Explorer library.

I am trying to add an ADC capture to the example to example to display the ADC data on the LCD.

For my ADC program I am using definitions that are in the msp.h file.

I added the correct include location to the project so the compiler find the msp.h file but I get the error msp.h "Failed to match a default include file"

Where in a project is the directive to tell the msp.h file which board to select. I am using the msp432p401r board?

  • John Tsinetakes1 said:
    Where in a project is the directive to tell the msp.h file which board to select. I am using the msp432p401r board?

    msp.h uses conditional compilation based on a macro to select the specific device include file, as shown by the following example with CCS syntax highlighting with the greyed-out lines being the inactive includes  :

    Where the project properties has a pre-defined name for the device, which is passed to the compiler and thus selects the conditional include inside msp.h:

  • Thanks That resolves the compiler issue.

    For future reference what CCS reference document will have this information?