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.

CC2650: #1965 cannot open source file "bcomdef.h"

Part Number: CC2650
Other Parts Discussed in Thread: BLE-STACK, CC2640

I am getting compiling error when loading software with error code for multiple #include files. Please help resolve this issue. 

#1965 cannot open source file "bcomdef.h"
#1965 cannot open source file "ti/drivers/SPI.h" 
#1965 cannot open source file "xdc/runtime/Error.h" 

The console error I am getting is:

**** Clean-only build of configuration Debug for project CC2650_LOAD_SW ****

"C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 16 clean -O

DEL /F "CC2650_LOAD_SW.out"
DEL /F "MAX30003.obj" "custom_profile.obj" "main.obj" "rngbuf.obj" "simple_peripheral.obj"
DEL /F "MAX30003.d" "custom_profile.d" "main.d" "rngbuf.d" "simple_peripheral.d"
Could Not Find C:\CCS Workspace\CC2650_LOAD_SW\Debug\CC2650_LOAD_SW.out
Finished clean

**** Build Finished ****

**** Build of configuration Debug for project CC2650_LOAD_SW ****

"C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 16 all -O

Building file: "../MAX30003.c"
Invoking: Arm Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="MAX30003.d_raw" "../MAX30003.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'MAX30003.obj' failed
"..\MAX30003.h", line 15: fatal error #1965: cannot open source file "ti/drivers/SPI.h"
1 catastrophic error detected in the compilation of "../MAX30003.c".
Compilation terminated.
gmake: *** [MAX30003.obj] Error 1
Building file: "../custom_profile.c"
Invoking: Arm Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="custom_profile.d_raw" "../custom_profile.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'custom_profile.obj' failed
"../custom_profile.c", line 44: fatal error #1965: cannot open source file "bcomdef.h"
1 catastrophic error detected in the compilation of "../custom_profile.c".
Compilation terminated.
gmake: *** [custom_profile.obj] Error 1
Building file: "../main.c"
Invoking: Arm Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_5.2.6/include" --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/CCS Workspace/CC2650_Second_Trial" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:16: recipe for target 'main.obj' failed
"../main.c", line 53: fatal error #1965: cannot open source file "xdc/runtime/Error.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
Building file: "../simple_peripheral.c"
Invoking: Arm Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="simple_peripheral.d_raw" "../simple_peripheral.c"

>> Compilation failure
subdir_rules.mk:23: recipe for target 'simple_peripheral.obj' failed
"../simple_peripheral.c", line 53: fatal error #1965: cannot open source file "ti/drivers/SPI.h"
1 catastrophic error detected in the compilation of "../simple_peripheral.c".
Compilation terminated.
gmake: *** [simple_peripheral.obj] Error 1
Building file: "../rngbuf.c"
Invoking: Arm Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl" -mv7M3 --code_state=16 -me --include_path="C:/CCS Workspace/CC2650_LOAD_SW" --include_path="C:/CCS Workspace/BLE-STACK/CCS7.4.0.00015_win32" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="rngbuf.d_raw" "../rngbuf.c"
Finished building: "../rngbuf.c"

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hi,

    Is this an unmodified simple peripheral project? Was the project building successfully previously, but now is no longer able to build? If the environment has not been able to previously build projects, then I would highly recommend ensuring that all of the steps discussed in Chapter 2.6 Setting up the Integrated Development Environment have been followed. This chapter may be found in the SWRU393_CC2640_BLE_Software_Developer's_Guide.pdf file which is located in the C:\ti\ble_sdk_2_02_05_02\docs directory (if the default installation location is used).

    Best Regards,

    Jan