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/LAUNCHXL-CC2650: CCS v8 Compiler errors on TI example code

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

Tool/software: Code Composer Studio

Hello ...first time user of TI software tools.

1. Downloaded latest CCS v8 and installed it on my computer. Downloaded and installed TI-RTOS as well.

2. Went through the Introduction and as suggested also downloaded and installed the BLE SDK 2.2.2.

3. Have I downloaded all necessary software modules I need to start my project?

Problems (2 of them):

1. I can't see the BLE SDK folder in Project Explorer on the left but can see the RTOS folder and its subdirectories (see below). How can I resolve this problem?

2. I tried to run one of the example files (by clicking the "Build" hammer button) and got a whole bunch of compilation errors. See pic below and inserted compilation log file. I was under the impression that all will run smoothly as the documentation said. What can I do to resolve these errors? I suspect maybe there's one root cause for all of them, but I have no proof to back up my suspicions.

**** Build of configuration Debug for project pinInterrupt_CC2650_LAUNCHXL_TI ****
"C:\\Texas Instruments\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O 
 
making ../src/sysbios/rom_sysbios.aem3 ...
Building file: "../pinInterrupt.cfg"
Building file: "../CC2650_LAUNCHXL.c"
Invoking: ARM Compiler
"C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272" --include_path="C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="CC2650_LAUNCHXL.d_raw" --cmd_file="configPkg/compiler.opt" "../CC2650_LAUNCHXL.c"
[include.]
 
>> Compilation failure
subdir_rules.mk:9: recipe for target 'CC2650_LAUNCHXL.obj' failed
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error #1965: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake: *** [CC2650_LAUNCHXL.obj] Error 1
Building file: "../ccfg.c"
Invoking: ARM Compiler
"C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272" --include_path="C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="ccfg.d_raw" --cmd_file="configPkg/compiler.opt" "../ccfg.c"
[include.]
 
>> Compilation failure
subdir_rules.mk:16: recipe for target 'ccfg.obj' failed
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error #1965: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake: *** [ccfg.obj] Error 1
Building file: "../pinInterrupt.c"
Invoking: ARM Compiler
"C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI" --include_path="C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272" --include_path="C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="pinInterrupt.d_raw" --cmd_file="configPkg/compiler.opt" "../pinInterrupt.c"
[include.]
 
>> Compilation failure
subdir_rules.mk:23: recipe for target 'pinInterrupt.obj' failed
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error #1965: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake: *** [pinInterrupt.obj] Error 1
Invoking: XDCtools
"C:/TI/xdctools_3_32_00_06_core/xs" --xdcpath="C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/packages;C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages;C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS" --compileOptions "-mv7M3 --code_state=16 --float_support=vfplib -me --include_path=\"D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI\" --include_path=\"D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI\" --include_path=\"C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272\" --include_path=\"C:/Texas Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include\" --define=ccs -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi  " "../pinInterrupt.cfg"
gmake[1]: Entering directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
asmem3 C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...
 
>> Compilation failure
makefile:40: recipe for target 'm3_Hwi_asm.obj' failed
Fatal error: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake[1]: *** [m3_Hwi_asm.obj] Error 1
gmake[1]: Leaving directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
gmake[1]: Entering directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
asmem3 C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...
 
>> Compilation failure
makefile:44: recipe for target 'm3_Hwi_asm_switch.obj' failed
Fatal error: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake[1]: *** [m3_Hwi_asm_switch.obj] Error 1
Fatal error: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake[1]: Leaving directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
gmake[1]: Entering directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
clem3 C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages/ti/sysbios/BIOS.c ...
 
>> Compilation failure
makefile:57: recipe for target 'rom_sysbios.obj' failed
gmake[1]: Leaving directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
gmake[1]: Entering directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
asmem3 C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...
 
>> Compilation failure
makefile:48: recipe for target 'm3_IntrinsicsSupport_asm.obj' failed
Fatal error: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake[1]: *** [m3_IntrinsicsSupport_asm.obj] Error 1
gmake[1]: Leaving directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
gmake[1]: Entering directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
asmem3 C:/TI/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...
 
>> Compilation failure
makefile:52: recipe for target 'm3_TaskSupport_asm.obj' failed
Fatal error: cannot open source file "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include"
1 catastrophic error detected in the compilation of "Instruments/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include".
Compilation terminated.
gmake[1]: *** [m3_TaskSupport_asm.obj] Error 1
gmake[1]: Target 'all' not remade because of errors.
gmake[1]: Leaving directory 'D:/Backups/Graduate School/UMass-Lowell/Semester/Haselmeier Project/Embedded Software/pinInterrupt_CC2650_LAUNCHXL_TI/src/sysbios'
../src/makefile.libs:56: recipe for target '../src/sysbios/rom_sysbios.aem3' failed
gmake: *** [../src/sysbios/rom_sysbios.aem3] Error 2
configuring pinInterrupt.xem3 from package/cfg/pinInterrupt_pem3.cfg ...
generating custom ROM library makefile ... 
Starting build of library sources ...
Build of libraries failed.
subdir_rules.mk:33: recipe for target 'build-1613913039-inproc' failed
gmake: D:/Backups/Graduate: No such file or directory
gmake: *** No rule to make target `D:/Backups/Graduate'.  Stop.
error: xdc.cfg.SourceDir: "C:/TI/xdctools_3_32_00_06_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/TI/xdctools_3_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/pinInterrupt_pem3.xdl] Error 1
xdctools_3_32_00_06_core\gmake.exe: *** Deleting file `package/cfg/pinInterrupt_pem3.xdl'
xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/pinInterrupt_pem3.xdl] Deleting file `package/cfg/pinInterrupt_pem3.h'
xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/pinInterrupt_pem3.xdl] Deleting file `package/cfg/pinInterrupt_pem3.c'
js: "C:/TI/xdctools_3_32_00_06_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1613913039-inproc] Error 1
gmake: *** [build-1613913039] Error 2
subdir_rules.mk:30: recipe for target 'build-1613913039' failed
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
  • Hi,

    1) The BLE-Stack on CC2650 is not supported in CCS Resource Explorer. Please install the BLE-Stack locally and use the import wizart to import these projects (link: www.ti.com/.../ble-stack ). To import the projects to CCS: Project -> Import CCS Project.

    What development environment are you using? In general the BLE-Stack for CC2650 only supports Windows.

    2) What compiler are you using?

    Can you try importing the pin example from Resource Explorer Classic?
  • Hi Marie:

    1.  I'm using Windows 10 PRO and by Resource Explorer Classic, do you mean "CCS Simple"?

    2. I'm using the latest CCS v8 for windows.

    3. I installed the BLE-Stack locally but still doesn't show up in explorer. See attachment below.

    4. When the compiler says Build FInished", does it mean that the program is loaded into the processor flash and ready for execution? If not, how can I make it build, load and run the program in one command or click?

    Thanks,

    David

  • Hi David,

    1) No. Open the View menu and select Resource Explorer Classic.

    3) BLE-Stack 2.2.2 is not supported in Resource Explorer. You can import BLE-Stack project to CCS by opening the Project menu and selecting Import CCS Project...

    4) No it's not programmed as part of the build process. If you press the bug symbol (Debug) the project will be built and programmed and a debugging session will begin.