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.

LAUNCHXL-CC2650: Request for help running Project Zero and fixing Compile Errors

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650, LP-EM-CC2340R5, CC2340R5

Tool/software:

Hello I purchased Launchxl-Cc2650 for development and am trying to learn the system.for prototyping an inhouse system for bluetooth. For this I am trying to run the Project Zero for cc2650.


I am following the instructions as described in the video SimpleLink Academy: Develop your Bluetooth low energy project. I tried to flash the project 0 code using the cloud.

When I tried to flash the code in getting started - Meet the CC2650 Launchpad! page from CC2650F128 button in this document, the download starts, leds blink, but I get an error message as shown in the pictures.

I tried unplugging and replugging and repeating the process as recommended with no luck. I also tried different laptops, but the error persists.

Alternatively, I installed BLE-STACK-2-X (ble_sdk_2_02_08_12_setup) from https://www.ti.com/tool/download/BLE-STACK-2-X using code composer studio

For the two step process, I was able to comple project_zero_stack_cc2650 project as the first step.
Next for step 2, I tried to compile project_zero_app_cc2650launchxl project. i am getting the attached compile errors.

I am unsure what to do and how to proceed for compiling and running the project zero. Please advise on how to get the project zero running. I will appreciate the help provided in running the project zero.

LinkErrors.txt

  • Hi,

    Thank you for reaching out! For new projects, we highly recommend using the F3 family of devices such as the CC23XX or CC27XX family of devices. I would suggest looking into the LP-EM-CC2340R5 board to start prototyping for new projects as it is frequently receiving new features and bug fixes.

    If you would like to proceed with then you must ensure you have the CCS version specified in the release notes for the BLE SDK. Please use the BLE-STACK-2-X version 2.02.08.12 with CCS version 7.4.0. When using this SW combination, you should be able to build and flash your board.

    Best Regards,

    Jan

  • Hello,

    Thank you for your response. I tried your recommendations and I get the same errors. I cannot use F3 hardware family and I am required to use CC2650 with launchxl cc2650 for initial prototyping. 

    I have verified and am indeed using BLE-STACK-2-X version 2.02.08.12 with ccs version 7.4.0.

    The include paths are all broken with default installations and after many trial and errors, I was able to fix many of the paths as they point to outdated simplelink versions and drivers and paths need to be updated in the software releases. I also have to copy the devinfoservice.c and devinfoservice.h in the project workspace to resolve many of the compile errors.

    With that said, I was able to compile the project_zero_stack_cc2650 and download the stack on the device.

    I am getting a linker error when compiling the app  project_zero_sapp_cc2650launchxl. The errors are as listed below and the compile log is as attached. I cannot find the file trng.h in the folder C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages/ti/drivers,

    Description Resource Path Location Type
    #1965 cannot open source file "ti/drivers/TRNG.h" CC2650_LAUNCHXL.c /project_zero_app_cc2650launchxl/Application line 55 C/C++ Problem
    gmake: *** [Application/CC2650_LAUNCHXL.obj] Error 1 project_zero_app_cc2650launchxl C/C++ Problem
    gmake: Target 'all' not remade because of errors. project_zero_app_cc2650launchxl C/C++ Problem
    #1-D last line of file ends without a newline ECCROMCC26XX.c /project_zero_app_cc2650launchxl/Drivers/ECC line 791 C/C++ Problem
    Invalid project path: Duplicate path entries found (/project_zero_app_cc2650launchxl [Include path] isSystemInclude:true includePath:C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages), path: [/project_zero_app_cc2650launchxl]. project_zero_app_cc2650launchxl pathentry Path Entry Problem
    Product 'TI-RTOS for CC13XX and CC26XX' v2.20.1.08 is not currently installed. A compatible version 2.21.1.08 will be used. project_zero_app_cc2650launchxl project_zero_app_cc2650launchxl Problem

    Please advise as per convenience on how to resolve this. 

    Also will it be possible a step by step procedure (for installations, setting compile and link variables, etc) to run this project as all the online resources links are either broken or the new versions software packages are not working for this particular hardware especially at a critical juncture.

    Any help will be appreciated.

    Thank you,

    Rahul.

    Project0_app_link_errors.txt

  • I installed simplelink_cc13xx_cc26xx_sdk_6_30_01_03 and got the TRNG.h file from there, but am now getting more linker errors as below

    'Building target: "project_zero_app_cc2650launchxl.out"'
    'Invoking: ARM Linker'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_08_12/src/config/build_components.opt" --cmd_file="C:/Users/admin/workspace_v7/project_zero_stack_cc2650/TOOLS/build_config.opt" --cmd_file="C:/Users/admin/workspace_v7/project_zero_stack_cc2650/TOOLS/ccs_compiler_defines.bcfg" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --define=CC2650_LAUNCHXL --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="\"\"" --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 -z -m"project_zero_app_cc2650launchxl.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include" --reread_libs --diag_suppress=16002-D --diag_suppress=10247-D --diag_suppress=10325-D --diag_suppress=10229-D --diag_wrap=off --display_error_number --warn_sections --xml_link_info="project_zero_app_cc2650launchxl_linkInfo.xml" --rom_model -o "project_zero_app_cc2650launchxl.out" "./Application/CC2650_LAUNCHXL.obj" "./Application/devinfoservice.obj" "./Application/project_zero.obj" "./Application/util.obj" "./Drivers/ECC/ECCROMCC26XX.obj" "./Drivers/TRNG/TRNGCC26XX.obj" "./ICall/icall.obj" "./ICall/icall_cc2650.obj" "./ICallBLE/icall_api.obj" "./PROFILES/button_service.obj" "./PROFILES/data_service.obj" "./PROFILES/gatt_uuid.obj" "./PROFILES/gattservapp_util.obj" "./PROFILES/led_service.obj" "./Startup/ccfg_app_ble.obj" "./Startup/main.obj" "./Utils/uart_logs.obj" -l"configPkg/linker.cmd" -l"C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/driverlib/bin/ccs/driverlib.lib" -l"C:/ti/simplelink/ble_sdk_2_02_08_12/src/rom/common_rom_releases/03282014/common_rom.symbols" -l"C:/Users/admin/workspace_v7/project_zero_stack_cc2650/TOOLS/ccs_linker_defines.cmd" -l"C:/ti/simplelink/ble_sdk_2_02_08_12/src/common/cc26xx/ccs/cc26xx_app.cmd" -llibc.a
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    GAPRole_GetParameter <whole-program>
    GAPRole_SetParameter <whole-program>
    GAPRole_StartDevice <whole-program>
    GAPRole_createTask <whole-program>
    RegisterAssertCback <whole-program>
    appAssertCback <whole-program>
    linkDBNumConns <whole-program>
    rfDriverTable <whole-program>
    rfRegTbl <whole-program>
    trngDriverTable <whole-program>
    txPwrTbl <whole-program>

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "project_zero_app_cc2650launchxl.out" not built

    >> Compilation failure
    makefile:179: recipe for target 'project_zero_app_cc2650launchxl.out' failed
    gmake[1]: *** [project_zero_app_cc2650launchxl.out] Error 1
    gmake: *** [all] Error 2
    makefile:172: recipe for target 'all' failed

    Let me know as per convenience



  • Hi,

    Can you share some details regarding the system you are using to compile the SDK example? Which operating system (and version) are you using? It shouldnt be necessary to pull header files from the CC13XX CC26XX SDK to get the projects to link properly.

    Best Regards,

    Jan

  • Hi Jan,

    Thank you. System  as below

    Windows 10 Pro Version 22H2.

    CCS Version: 7.4.0.00015

    BLE SDK: version 2.02.08.12

    TI RTOS Version: 2.21.01.08

    Let me know as per convenience.

    Thank you,

    Rahul

  • Hi,

    Did you install BLE Stack SDK at c:\ti?

    -kel

  • Yes. Its installed at c:\ti

  • Hi,

    I am using CCSv8.2. Import the simple peripheral from this folder location C:\ti\simplelink\ble_sdk_2_02_07_06\examples\cc2650lp\simple_peripheral. Make sure "Copy projects to workspace is selected". See, below.

      

    Build stack then app. 

    Also, the CC2650 is old. I strongly advise you to move your Bluetooth learning using the CC2340R5 development board.

    -kel

  • Should I install CCS v8.2 and ble_sdk_2_07_07_06?

  • Try my recommended steps with your current SDK version. If that does not work you can try upgrading to use latest SDK. The latest SDK should also work using CCSv7.4. 

    -kel

  • Hello Markel,
    Thank you. I was able to compile and flash the simple peripheral example on the launchpad successfully as per your instructions. I have one request, is there a step by step instruction on how to test this program and the features such as switching the leds? Please let me know as per convenience. Appreciate your help.
    Thank you.

  • Hi,

    See, link below. At Task 2, use IOS LightBlue App or Android nRF Connect App.

    https://software-dl.ti.com/lprf/simplelink_academy/modules/ble_01_basic/ble_01_basic.html

    -kel