Other Parts Discussed in Thread: CC2650, SYSBIOS
Tool/software: Code Composer Studio
Hello wonderful people of the TI community,
I am a newbie to this platform, so please pardon this likely simple issue. I am sure you can help me fix this.
I am just getting started with the CC2650 LaunchPad kit. My end goal is to flash the Simple BLE broadcaster example that's part of the TI BLE stack v2.2.1. I have installed the BLE stack. I have Code Composer Studio v7 installed on my Windows 10 PC.
I added some Driver examples (pwmled) for CC2650 LaunchPad under TI-RTOS for CC2650 - v:2.21.00.06 from the Resource Explorer to the IDE. However, I am unable to build this example. The errors indicate that I am missing compiler include paths along with other compiler options that should be passed to the XDCtools. I would appreciate if you can show me how to fix the paths. I am also curious to know the source of this issue. I installed everything from scratch and am not sure why the paths would be broken. I have pasted the console logs and the Problems (Errors:10).
I tried the Cloud code composer and it was able to build and debug the same example, which indicates the problem is native to the way code composer is setup on my machine. Hopefully, this should be an easy fix.
While I am asking questions, could you please also tell me how can I import an example from the BLE stack in the cloud code composer?
Thanks in advance. I really appreciate your help in unblocking me.
Rahil
**** Build of configuration Debug for project pwmled_CC2650_LAUNCHXL_TI ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
gmake[1]: Entering directory 'C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/Debug'
'Building file: ../pwmled.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/tidrivers_cc13xx_cc26xx_2_20_01_10/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/uia_2_00_06_52/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS" --compileOptions "-mv7M3 --code_state=16 --float_support=vfplib -me --include_path=\"C:/Users/Lutz Group/OneDrive/Hackajoe Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI\" --include_path=\"C:/Users/Lutz Group/OneDrive/Hackajoe Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI\" --include_path=\"C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_03_17272\" --include_path=\"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include\" --define=ccs -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "../pwmled.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring pwmled.xem3 from package/cfg/pwmled_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/src/sysbios'
clem3 C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
>> Compilation failure
gmake[1]: Leaving directory `C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/src/sysbios'
Build of libraries failed.
subdir_rules.mk:33: recipe for target 'build-2136563087-inproc' failed
"C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/family/arm/cc26xx/Boot.c", line 36: fatal error: cannot open source file "driverlib/sys_ctrl.h"
1 catastrophic error detected in the compilation of "C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/family/arm/cc26xx/Boot.c".
Compilation terminated.
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/src/sysbios/rom_sysbios.aem3] Error 2
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!
gmake.exe: *** [package/cfg/pwmled_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/pwmled_pem3.xdl'
gmake.exe: *** [package/cfg/pwmled_pem3.xdl] Deleting file `package/cfg/pwmled_pem3.h'
gmake.exe: *** [package/cfg/pwmled_pem3.xdl] Deleting file `package/cfg/pwmled_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-2136563087-inproc] Error 1
gmake: *** No rule to make target 'build-2136563087', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-2136563087', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-2136563087', needed by 'configPkg/compiler.opt'.
gmake[1]: Leaving directory 'C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/Debug'
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Description Resource Path Location Type
cannot open source file "driverlib/sys_ctrl.h" .ccsproject /pwmled_CC2650_LAUNCHXL_TI line 36, external location: C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\bios_6_46_01_38\packages\ti\sysbios\family\arm\cc26xx\Boot.c C/C++ Problem
gmake: *** [C:/Users/xxxx/OneDrive/Labs/TI_Workspace/pwmled_CC2650_LAUNCHXL_TI/src/sysbios/rom_sysbios.aem3] Error 2 pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake: *** No rule to make target 'build-2136563087', needed by 'configPkg/compiler.opt'. pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake: Target 'all' not remade because of errors. pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake.exe: *** [package/cfg/pwmled_pem3.xdl] Deleting file `package/cfg/pwmled_pem3.c' pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake.exe: *** [package/cfg/pwmled_pem3.xdl] Deleting file `package/cfg/pwmled_pem3.h' pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake.exe: *** Deleting file `package/cfg/pwmled_pem3.xdl' pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake[1]: *** [build-2136563087-inproc] Error 1 pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
gmake[1]: *** [rom_sysbios.obj] Error 1 pwmled_CC2650_LAUNCHXL_TI C/C++ Problem
xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: .xdchelp /pwmled_CC2650_LAUNCHXL_TI line 209 C/C++ Problem