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:在项目中添加Board.h时出现无法打开源文件错误

Guru**** 2581345 points
Other Parts Discussed in Thread: AWR1443

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/618262/ccs-msp432p401r-cannot-open-source-file-error-when-i-add-board-h-into-a-project

部件号:MSP432P401R
主题中讨论的其他部件:AWR1443

工具/软件:Code Composer Studio

您好,

我想在MSP432和AWR1443之间的MMW演示中添加SPI功能。 因此,在MMW项目中,我添加了board.h,这样我就可以使用GPIO引脚和SPI引脚,但当我构建项目时,我收到错误:

"..\Board.h",第57行:致命错误#1965:无法打开源文件"C:/ti/simplelink_msp432_SDK_1_40_01_00/source/ti/drivers/adc.h"

我不知道为什么我在将Board.h添加到MMW项目时会收到此错误,以及为什么使用ti resource Explorer msp432 SPI示例时不会收到此错误。

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    请检查文件的包含方式。 在我的副本中,它不在第57行,而是第40行,看起来像这样:

    #include <ti/drivers/adc.h>
    #include <ti/drivers/ADCBuf.h>
    #include <ti/drivers/GPIC.h>
    #include <ti/drivers/I2C.h>
    #include <ti/drivers/wmp.h>
    #include <ti/drivers/SDSPI.h>
    #include <ti/drivers/spi.h>
    #include <ti/drivers/UART.h>
    #include <ti/drivers/Watchdog.h>

    在错误中,还有一个不正确的'驱动程序'级别。

    此致,
    Chris