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: Cannot open source file error when i add Board.h into a project

Part Number: MSP432P401R
Other Parts Discussed in Thread: AWR1443

Tool/software: Code Composer Studio

Hi,

I wanted to add SPI functionality to the mmw demo between the MSP432 and AWR1443. Therefore, in the mmw project i added board.h so i could use the GPIO pins and SPI pins but when i build my project i get the error:

"..\Board.h", line 57: fatal error #1965: cannot open source file "C:/ti/simplelink_msp432_sdk_1_40_01_00/source/ti/drivers/drivers/ADC.h"

Im not sure why im getting this error when i add Board.h to my mmw project and why i dont get this error using a ti resource explorer msp432 spi example.

Thanks

  • Please check how the file is included. In my copy that is not on line 57 but line 40 and looks like this:

    #include <ti/drivers/ADC.h>
    #include <ti/drivers/ADCBuf.h>
    #include <ti/drivers/GPIO.h>
    #include <ti/drivers/I2C.h>
    #include <ti/drivers/PWM.h>
    #include <ti/drivers/SDSPI.h>
    #include <ti/drivers/SPI.h>
    #include <ti/drivers/UART.h>
    #include <ti/drivers/Watchdog.h>

    In the error there is an additional 'drivers' level which is incorrect.

    Regards,
    Chris

**Attention** This is a public forum