On compilation am getting error
#35: #error directive: "Failed to match a default include file"
Please help me to sort out this problem.
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.
On compilation am getting error
#35: #error directive: "Failed to match a default include file"
Please help me to sort out this problem.
Utpal Shanker said:#35: #error directive: "Failed to match a default include file"
The error message points to line 1802 in c:/ti/ccsv6/ccs_base/msp430/include/msp430.h. If you take a look at that file you will find that it includes the appropriate device header file based on a preprocessor symbol definition. The CCS project should define the symbol based on the device selected when the project is created. If there is no symbol definition to denote the device, then it defaults to output that error.
Note that this error is triggered when building the source file MSP430F55xx_uscib0_i2c_11.c, which is inside the MES directory. Is that file intended to be a part of your project? If it is, does it #include msp430.h?
I would suggest taking a closer look at the full output in the CCS build console - it should give you more clues as to which files are being compiled and with what options and should help isolate the cause of error.