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/CC2640: Can't build Project Zero with CCS v8

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

Tool/software: Code Composer Studio

hello,

I am using os windows 7 and launchpad SimpleLink Wireless MCU cc2640f128 with Code Composer Studio Version:  8.1.0.00011 ,  ble_sdk_2_02_02_25_setup, i have use TMS320-XDS100-V3+ emulater for omimax,  , setup_simplelink_academy_01_11_00_0000

  project zero import from setup_simplelink_academy_01_11_00_0000  cc2650 and modification for  Project Zero to work on CC2640F128 on a custom board   and  when i build the project give below error.


**** Build of configuration Debug for project project_zero_app_cc2650stk ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -j -k -j 2 all -O

Building file: "../Application/project_zero.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" --cmd_file="C:\ti\simplelink\ble_sdk_2_02_02_25\src\config\build_components.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/build_config.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/ccs_compiler_defines.bcfg" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path="D:/workspace_8_2/project_zero_app_cc2650stk" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Profiles" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Application" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/ICallBLE" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Startup" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Board" --include_path="C:/ti/simplelink_academy_01_11_00_0000/modules/projects/support_files/Components/uart_log" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/icall/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/dev_info" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/heapmgr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/controller/cc26xx/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/osal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/sdata" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/saddr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/inc" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=0 --define=Display_DISABLE_ALL --define=BOARD_DISPLAY_EXCLUDE_UART --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XX --define=xdc_FILE="\"project_zero.c\"" --define=UARTLOG_NUM_EVT_BUF=32 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Application/project_zero.d_raw" --obj_directory="Application" --cmd_file="configPkg/compiler.opt" "../Application/project_zero.c"

>> Compilation failure
Application/subdir_rules.mk:9: recipe for target 'Application/project_zero.obj' failed
"C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/Board.h", line 99: fatal error #35: #error directive: "***ERROR*** Invalid Board Specified! Please see board.h for options."
1 catastrophic error detected in the compilation of "../Application/project_zero.c".
Compilation terminated.
gmake: *** [Application/project_zero.obj] Error 1
Building file: "C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/icall.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" --cmd_file="C:\ti\simplelink\ble_sdk_2_02_02_25\src\config\build_components.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/build_config.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/ccs_compiler_defines.bcfg" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path="D:/workspace_8_2/project_zero_app_cc2650stk" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Profiles" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Application" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/ICallBLE" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Startup" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Board" --include_path="C:/ti/simplelink_academy_01_11_00_0000/modules/projects/support_files/Components/uart_log" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/icall/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/dev_info" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/heapmgr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/controller/cc26xx/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/osal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/sdata" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/saddr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/inc" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=0 --define=Display_DISABLE_ALL --define=BOARD_DISPLAY_EXCLUDE_UART --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XX --define=xdc_FILE="\"icall.c\"" --define=UARTLOG_NUM_EVT_BUF=32 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="ICall/icall.d_raw" --obj_directory="ICall" --cmd_file="configPkg/compiler.opt" "C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/icall.c"

>> Compilation failure
ICall/subdir_rules.mk:9: recipe for target 'ICall/icall.obj' failed
"C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/board.h", line 99: fatal error #35: #error directive: "***ERROR*** Invalid Board Specified! Please see board.h for options."
1 catastrophic error detected in the compilation of "C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/icall.c".
Compilation terminated.
gmake: *** [ICall/icall.obj] Error 1
Building file: "../Startup/main.c"
Invoking: ARM Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" --cmd_file="C:\ti\simplelink\ble_sdk_2_02_02_25\src\config\build_components.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/build_config.opt" --cmd_file="D:/workspace_8_2/project_zero_stack_cc2650/TOOLS/ccs_compiler_defines.bcfg" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path="D:/workspace_8_2/project_zero_app_cc2650stk" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Profiles" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Application" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/ICallBLE" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Startup" --include_path="D:/workspace_8_2/project_zero_app_cc2650stk/Board" --include_path="C:/ti/simplelink_academy_01_11_00_0000/modules/projects/support_files/Components/uart_log" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/icall/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/roles" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/dev_info" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/profiles/simple_profile" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/heapmgr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/controller/cc26xx/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/osal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/sdata" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/services/src/saddr" --include_path="C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/icall/src/inc" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=0 --define=Display_DISABLE_ALL --define=BOARD_DISPLAY_EXCLUDE_UART --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XX --define=xdc_FILE="\"main.c\"" --define=UARTLOG_NUM_EVT_BUF=32 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Startup/main.d_raw" --obj_directory="Startup" --cmd_file="configPkg/compiler.opt" "../Startup/main.c"

>> Compilation failure
Startup/subdir_rules.mk:16: recipe for target 'Startup/main.obj' failed
"C:/ti/simplelink/ble_sdk_2_02_02_25/src/components/hal/src/target/board.h", line 99: fatal error #35: #error directive: "***ERROR*** Invalid Board Specified! Please see board.h for options."
1 catastrophic error detected in the compilation of "../Startup/main.c".
Compilation terminated.
gmake: *** [Startup/main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Regards,

  • I'm sorry for your frustration. I believe the SimpleLink Academy that includes the project zero for CC2650 has the project made for BLE SDK 2.2.1 and not 2.2.2.

    What compiler are you using?

    As a workaround, you may look to using the sensortag application (which works well with the SensorTag iOS/Android Application for mobile phones and is similar to the Project Zero. We have not updated that simplelink academy lab in some time. Do you have more success with the sensortag app?

    I will make a note to improve that part of our offering as this is a commonly asked question regarding the older simplelink academys and the project zeros for CC2650.

    Also, it doesn't look like that you have "TI RTOS for CC1234xx and CC26xx v2.20.1.08 installed. have you looked into this? This RTOS is included in the BLE Stack 2.2.1 which you can download here: www.ti.com/.../swlicexportcontrol.tsp
  • hello Evan Wakefield,

    i am using compiler version TIv18.1.2.LTS.

    sorry i have not more success with the sensortag app.
  • hello Evan Wakefield,

    i am using compiler version TIv18.1.2.LTS.

    sorry i have not more success with the sensortag app.
    thanks for the you will make a note to improve that part of our offering as this is a commonly asked question regarding the older simplelink academys and the project zeros for CC2650.

    regards,
    shital
  • As Evan replied, the ProjectZero is made for BLE Stack 2.2.1 not 2.2.2. I think you should download and install BLE Stack 2.2.1 from BLE-STACK-ARCHIVE and use it to test again.
  • Shital,

    In addition to YiKais very valid comments you need to use only the compiler that the release notes say the SDK has been tested to or else undefined behavior and errors can happen.