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.

Code Composer Studio RTSC Project, Cannot Open Source File

Other Parts Discussed in Thread: SYSBIOS

Hello,


Can someone tell me how to fix this? I create a new CCS project and select the RTSC project template. I add all the necessary include files and everything. I have the same setup as the example projects, yet cannot seem to continue.

For example, the "Boot.c" has:

#include <inc/hw_aon_sysctl.h>
#include <driverlib/sys_ctrl.h>


My errors keep showing that all header files of this form <inc/*.h> and <driverlib/*.h> cannot be opened. Has anyone had the same issue?

  • Hi,

    If you closely analyze the output of the console build, it may evidence something incorrect with the paths passed to the Compiler --> Include options.

    Take a closer look at empty environment variables (the ones enclosed between ${}) and double check typos on paths.

    Specifically to your case, it seems you may be trying to use the TIRTOS for Simplelink, right? if so, look if the path below exists in your include path:

    C:\ti\tirtos_simplelink_2_13_00_06\products\cc26xxware_2_21_01_15600

    Hope this helps,
    Rafael
  • I have the c26xxware included. Everything is included and it is modeled after the example projects. Everything is correct, but it is as if it only does not work when I create the RTSC. I have done the exact same things with creating a CCS project and everything is fine. Any other ideas?
  • Hmmm, would you mind copying the console output to a .txt file and attaching it to the forum thread? I wonder if I could spot something.

    I guess you already created projects using the TI Resource Explorer and they worked, right? (just to be sure nothing is particularly wrong with your install)

    Regards,

    Rafael

  • Thanks. I got it to work somehow. I ended up tossing the project and making a new one. Starting over did something magical and now it works for some reason.

  • I have the same problem going on, but there's some bizzarness going on.

    A little background:  I'm attempting to create a BLE Stack application from scratch, based on the sample projects.  This is an attempt to learn more about the BLE stack and TI-RTOS.  I started by creating a new project, using the "Empty RTSC Project" template, and then added the non-project related include directories from the SimpleBLEPeripheral sample project.  Essentially, I'm excluding everything from the ble_cc26xx_x_01_00_44423\Projects folder.  

    Here are all of the include directories.:

    "C:\ti\tirtos_simplelink_2_13_00_06\products\cc26xxware_2_21_01_15600"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\ble\controller\CC26xx\include"
    "C:ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\include"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\applib\heap"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\ble\hci"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\ble\host"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\hal\target\CC2650TIRTOS"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\hal\target\_common\cc26xx"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\hal\include"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\services\sdata"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\services\saddr"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\icall\include"
    "C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\ble\include"
    "C:\ti\tirtos_simplelink_2_13_00_06\packages\ti\boards\SRF06EB\CC2650EM_7ID"
    "${PROJECT_LOC}"

    When I do a clean and build, this is the console output:

    **** Build of configuration Debug for project CustomBLEAttempt1 ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../CustomBLEAttempt1.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_14_01_20/packages;C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages;C:/ti/tirtos_simplelink_2_14_01_20/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" "../CustomBLEAttempt1.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring CustomBLEAttempt1.xem3 from package/cfg/CustomBLEAttempt1_pem3.cfg ...
    warning: ti.sysbios.family.arm.m3.Hwi: "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/m3/Hwi.xs", line 650: ti.sysbios.family.arm.m3.Hwi dispatchTableSize: (35) should only be set to a value less than 1/3 Hwi.NUM_INTERRUPTS: (50)
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios'
    clem3 C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/BIOS.c ...
    "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/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_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Boot.c".
    Compilation terminated.
    >> Compilation failure
    gmake[1]: *** [BIOS.obj] Error 1
    gmake[1]: Leaving directory `C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios'
    gmake: *** [C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios/sysbios.aem3] Error 2
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/CustomBLEAttempt1_pem3.xdl'
    gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Deleting file `package/cfg/CustomBLEAttempt1_pem3.h'
    gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Deleting file `package/cfg/CustomBLEAttempt1_pem3.c'
    js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [configPkg/linker.cmd] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

    When I do just a build (no clean), this is the console output:

    **** Build of configuration Debug for project CustomBLEAttempt1 ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/CC2650EM_7ID" --include_path="C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1" -g --define=DEBUG --define=CC26XXWARE --define=CC26XX --define=CC2640F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" --verbose --cmd_file="./configPkg/compiler.opt"  "../main.c"
    TI ARM C/C++ Compiler                   v5.2.5
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
    'Finished building: ../main.c'
    ' '
    'Building file: C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/Board.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/CC2650EM_7ID" --include_path="C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1" -g --define=DEBUG --define=CC26XXWARE --define=CC26XX --define=CC2640F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="Startup/Board.pp" --obj_directory="Startup" --verbose --cmd_file="./configPkg/compiler.opt"  "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/Board.c"
    TI ARM C/C++ Compiler                   v5.2.5
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
    'Finished building: C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/Board.c'
    ' '
    'Building file: C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/CC2650EM_7ID" --include_path="C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1" -g --define=DEBUG --define=CC26XXWARE --define=CC26XX --define=CC2640F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="ICall/ICall.pp" --obj_directory="ICall" --verbose --cmd_file="./configPkg/compiler.opt"  "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"
    TI ARM C/C++ Compiler                   v5.2.5
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
    "C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/bleUserConfig.h", line 308: warning #1181-D: #warning directive: Not enough heap for configured MAX_NUM_PDU and MAX_PDU_SIZE! Adjust HEAPMGR_SIZE.
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/hal/Hwi.h"   ==> ti_sysbios_hal_Hwi_Params_init
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/knl/Clock.h"   ==> ti_sysbios_knl_Clock_Params_init
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/knl/Task.h"   ==> ti_sysbios_knl_Task_Params_init
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/knl/Semaphore.h"   ==> ti_sysbios_knl_Semaphore_Params_init
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include/ICall.h"   ==> ICall_freeMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include/ICall.h"   ==> ICall_abort
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_enterCSImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_leaveCSImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap/heapmgr.h"   ==> ICall_heapInit
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap/heapmgr.h"   ==> ICall_heapMalloc
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap/heapmgr.h"   ==> ICall_heapRealloc
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap/heapmgr.h"   ==> ICall_heapFree
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_searchTask
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_newTask
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_searchServiceEntity
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_searchService
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_dispatch
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_taskEntry
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_init
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_createRemoteTasks
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primEnroll
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primRegisterApp
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primAllocMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primFreeMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_mallocImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_freeImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primMalloc
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primFree
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_msgEnqueue
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_msgDequeue
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_msgPrepend
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primSend
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primFetchMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primEntityId2ServiceId
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primE2S
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primSendServiceMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primFetchServiceMsg
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_msecs2Ticks
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primWait
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primSignal
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primAbort
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primEnableInt
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primDisableInt
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primEnableMInt
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primDisableMInt
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primRegisterISR
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primRegisterISR_Ext
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primGetTicks
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_clockFunc
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primSetTimer
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primSetTimerMSecs
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primStopTimer
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primGetTickPeriod
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primGetMaxMSecs
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primWaitMatch
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primGetEntityId
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primThreadServes
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primCreateTask
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primCreateSemaphore
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primWaitSemaphore
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_primService
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c"   ==> ICall_initPrim
    'Finished building: C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICall.c'
    ' '
    'Building file: C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/CC2650EM_7ID" --include_path="C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1" -g --define=DEBUG --define=CC26XXWARE --define=CC26XX --define=CC2640F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="ICall/ICallCC2650.pp" --obj_directory="ICall" --verbose --cmd_file="./configPkg/compiler.opt"  "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"
    TI ARM C/C++ Compiler                   v5.2.5
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrNotify
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrRequireImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrDispenseImpl
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrUpdActivityCounter
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrConfigACAction
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrRequire
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrDispense
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrRegisterNotify
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrIsStableXOSCHF
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrSwitchXOSCHF
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrGetTransitionState
       "C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c"   ==> ICallPlatform_pwrGetXOSCStartupTime
    'Finished building: C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/ports/tirtos/ICallCC2650.c'
    ' '
    'Building file: C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M3 --code_state=16 --abi=eabi -me --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/osal/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/products/cc26xxware_2_21_03_15980" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/controller/CC26xx/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/applib/heap" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/hci" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/host" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/CC2650TIRTOS" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/hal/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/sdata" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/services/saddr" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/icall/include" --include_path="C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Components/ble/include" --include_path="C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/boards/SRF06EB/CC2650EM_7ID" --include_path="C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1" -g --define=DEBUG --define=CC26XXWARE --define=CC26XX --define=CC2640F128RGZ --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="Drivers/PIN/PINCC26XX.pp" --obj_directory="Drivers/PIN" --verbose --cmd_file="./configPkg/compiler.opt"  "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"
    TI ARM C/C++ Compiler                   v5.2.5
    Tools Copyright (c) 1996-2015 Texas Instruments Incorporated
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/knl/Semaphore.h"   ==> ti_sysbios_knl_Semaphore_Params_init
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/knl/Semaphore.h"   ==> ti_sysbios_knl_Semaphore_handle
       "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/m3/Hwi.h"   ==> ti_sysbios_family_arm_m3_Hwi_Params_init
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PIN_ctz
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_getInputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_setOutputEnable
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_setOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_getOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_clrPendInterrupt
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_getPortInputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_getPortOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_setPortOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.h"   ==> PINCC26XX_setPortOutputEnable
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_Isr
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_setIoCfg
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_setIoCfgMux
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_init
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_open
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_add
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_remove
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_close
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getInputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setOutputEnable
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setInterrupt
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_clrPendInterrupt
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_registerIntCb
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getConfig
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setConfig
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_getConfig
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_getMux
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_setMux
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PINCC26XX_setWakeup
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getPortMask
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getPortInputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_getPortOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setPortOutputValue
       "C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c"   ==> PIN_setPortOutputEnable
    'Finished building: C:/ti/tirtos_simplelink_2_14_01_20/packages/ti/drivers/pin/PINCC26XX.c'
    ' '
    'Building file: ../CustomBLEAttempt1.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_14_01_20/packages;C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages;C:/ti/tirtos_simplelink_2_14_01_20/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" "../CustomBLEAttempt1.cfg"
    configuring CustomBLEAttempt1.xem3 from package/cfg/CustomBLEAttempt1_pem3.cfg ...
    warning: ti.sysbios.family.arm.m3.Hwi: "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/m3/Hwi.xs", line 650: ti.sysbios.family.arm.m3.Hwi dispatchTableSize: (35) should only be set to a value less than 1/3 Hwi.NUM_INTERRUPTS: (50)
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios'
    clem3 C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/BIOS.c ...
    "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/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_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Boot.c".
    Compilation terminated.
    >> Compilation failure
    gmake[1]: *** [BIOS.obj] Error 1
    gmake[1]: Leaving directory `C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios'
    gmake: *** [C:/Users/chendrix/Workspace6_2/CustomBLEAttempt1/src/sysbios/sysbios.aem3] Error 2
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Error 1
    xdctools_3_31_01_33_core\gmake.exe: *** Deleting file `package/cfg/CustomBLEAttempt1_pem3.xdl'
    xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Deleting file `package/cfg/CustomBLEAttempt1_pem3.h'
    xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/CustomBLEAttempt1_pem3.xdl] Deleting file `package/cfg/CustomBLEAttempt1_pem3.c'
    js: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [configPkg/linker.cmd] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • CurtisHx said:
    "C:/ti/tirtos_simplelink_2_14_01_20/products/bios_6_42_02_29/packages/ti/sysbios/family/arm/cc26xx/Boot.c", line 36: fatal error: cannot open source file "driverlib/sys_ctrl.h"

    This error is coming from the XDCTools and is likely because the compiler's include paths (used when building RTSC libraries) does not have the path to "driverlib/sys_ctrl.h". These are compiler paths/options defined under XDCtools in the Project Properties and not under Compiler->Include Options.

    I would suggest you import one of the example projects from TI-RTOS for Simplelink (using Resource Explorer) to see how these paths are set up.
    For example, I imported UART Echo under TI-RTOS for Simplelink Wireless MCUs ->  Simplelink Wireless MCU -> CC2650F128 ->Driver Examples -> CC2650STK-BLE -> TI Target Examples-> UART Examples.

    In this project, if I go to Properties->XDCtools->Advanced Options, under "Additional compiler options" I see a variable ${COMPILER_FLAGS}, which if I look up under Build variables, in addition to other options, it also includes the path to the /tirtos_simplelink_2_12_01_33/products/cc26xxware_2_20_06_14829\" directory which is what is needed to find "driverlib/sys_ctrl.h".

    My versions are a bit older than yours, but I hope it helps point you in the right direction.