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/CC1350STK: building http://www.ti.com/tool/TIDA-01469 for the cc1350 SensorTag

Part Number: CC1350STK
Other Parts Discussed in Thread: CC2640, CC1350, SYSBIOS

Tool/software: Code Composer Studio

Hi guys,

I'm having som issues building this old project enabling preventive maintenance for CC1350stk. Currently it seems as though it's missing the driverlib, but I can't find the files or the driverlib anywhere. I'm not sure how to proceed with this. My task is to get the preventive maintenance project working on the SensorTag.

Here is the build log and afterwards the error log:

Build Log

**** Build of configuration FlashROM for project simple_peripheral_cc1350lp_app ****

"C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "../TOOLS/cc2640.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;C:/ti/ccs910/ccs/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1350F128 -r release -c "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include\" --include_path=\"C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/tidrivers_cc13xx_cc26xx_2_20_01_10/packages/ti/drivers\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/examples/simple_peripheral/cc26xx/app\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/icall/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/cc26xx\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/dev_info\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile/cc26xx\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/heapmgr\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/controller/cc26xx/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/target\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/sdata\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/saddr\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/inc\" --include_path=\"C:/ti/simplelink/ble_sdk_2_02_01_18/src/rom\" --include_path=\"C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc13xxware_2_04_02_17240\" -g --c99 --gcc --define=BOARD_DISPLAY_EXCLUDE_UART --define=CC1350_LAUNCHXL --define=CC13XX --define=Display_DISABLE_ALL --define=HEAPMGR_SIZE=0 --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=POWER_SAVING --define=USE_ICALL --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --diag_warning=225 --diag_suppress=48 --diag_wrap=off --display_error_number --gen_func_subsections=on " "../TOOLS/cc2640.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring cc2640.xem3 from package/cfg/cc2640_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/Users/jees9/workspace_v9/simple_peripheral_cc1350lp_app/TOOLS/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/Users/jees9/workspace_v9/simple_peripheral_cc1350lp_app/TOOLS/src/sysbios'
clem3 C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...

>> Compilation failure
gmake[1]: Leaving directory `C:/Users/jees9/workspace_v9/simple_peripheral_cc1350lp_app/TOOLS/src/sysbios'
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-803811407-inproc' failed
"C:/ti/tirtos_cc13xx_cc26xx_2_21_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_21_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/jees9/workspace_v9/simple_peripheral_cc1350lp_app/TOOLS/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/cc2640_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/cc2640_pem3.xdl'
gmake.exe: *** [package/cfg/cc2640_pem3.xdl] Deleting file `package/cfg/cc2640_pem3.h'
gmake.exe: *** [package/cfg/cc2640_pem3.xdl] Deleting file `package/cfg/cc2640_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-803811407-inproc] Error 1
gmake: *** [build-803811407] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-803811407' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Error Log

cannot open source file "driverlib/sys_ctrl.h"
gmake: *** [build-803811407] Error 2
gmake: *** [C:/Users/jees9/workspace_v9/simple_peripheral_cc1350lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
gmake: Target 'all' not remade because of errors.
gmake.exe: *** [package/cfg/cc2640_pem3.xdl] Deleting file `package/cfg/cc2640_pem3.c'
gmake.exe: *** [package/cfg/cc2640_pem3.xdl] Deleting file `package/cfg/cc2640_pem3.h'
gmake.exe: *** Deleting file `package/cfg/cc2640_pem3.xdl'
gmake[1]: *** [build-803811407-inproc] Error 1
gmake[1]: *** [rom_sysbios.obj] Error 1
xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

 

  • I verified that this project builds without errors with the following versions of tools:

    BLE SDK 2.02.01.18 
    TI-RTOS  2.20.01.08
    ARM Compiler - 5.2.6

    I see in your log that you are using TI-RTOS 2.21.01.08. That might be the source of the error. Compatibility between BLE SDK and TI-RTOS is usually important to avoid these types of errors, so in general, it is best to check the release notes for the BLE SDK to see which version of TI-RTOS it is compatible with. As per the release notes for BLE SDK 2.02, I used TI-RTOS 2.20.01.08 and there were no issues.

    Please install that version of TI-RTOS (you can download from here), then set your project to build with that version.


    Also ensure that you have ARM compiler version 5.2.6 installed and used for the build.


    Then rebuild the project and let us know if the errors persist.

  • Thank you very much, this is very helpful. I can't seem to find the version of the BLE SDK you are refering to? So the errors still persists...

  • I assumed your program was based off BLE SDK 2.02.01.18 and you already had it installed because that is the version shown in your build output.

    If you don't have it installed, you can download and install it from http://www.ti.com/tool/BLE-STACK-ARCHIVE

  • Now it builds :) Thank you!

    Do you have any advise regarding modification of the project so it works on cc1350 SensorTag?

  • user6127571 said:
    Do you have any advise regarding modification of the project so it works on cc1350 SensorTag?

    Sorry, I am not the best person to answer that. Please post a new question about that in the Sub-1 GHz forum.