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.

How to run TI-RTOS examples on CC1310 5x5 custom board?

Other Parts Discussed in Thread: CC1310, SYSBIOS

Dear Sirs,

Could you publish step-by-step instruction for running CCS TI-RTOS examples on CC1310 5x5 chip?

It would be great to show it on rfCarrierWave sample apps, as it is the first needs for checking custom hardware.

C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\examples\TI\CC1310DK_7XD\rfCarrierWave

What exact changes should be done in the project properties and in header files?

Best regards,

Oleg

  • The difference between the packet types from a programming standpoint (4x4, 5x5 and 7x7) is the DIO mapping. To run the carrier wave example you don't need to change anything since this example doesn't use any DIOs. For other examples the board files (CC1310DK_7XD.*) have to be replaced with the board files for the board you are using, see C:\ti\tirtos_cc13xx_cc26xx_2_16_01_14\products\tidrivers_cc13xx_cc26xx_2_16_01_13\packages\ti\boards
  • Don't you also have to modify the CC1310DK.cmd file for memory mapping, i.e.:

    /* The starting address of the application. Normally the interrupt vectors */
    /* must be located at the beginning of the application. */
    #define FLASH_BASE 0x0
    #define RAM_BASE 0x20000000

    #ifdef DEBUG
    #define FLASH_SIZE 0x20000 //'F128 on EM
    #define RAM_SIZE 0x5000
    #else
    #define FLASH_SIZE 0x10000 //'F64 on custom PCB
    #define RAM_SIZE 0x4000
    #endif

  • If you use a different memory size than 128 k, yes.
  • Hi,

    I am using rfPacketTx_CC1310DK_7XD_tirtos_ccs for my project to verify communication between two devices. I have two 5x5 development board. I have tried to replace files of 5x5 from "C:\ti\tirtos_cc13xx_cc26xx_2_16_01_14\products\tidrivers_cc13xx_cc26xx_2_16_01_13\packages\ti\boards" to CCS workspace but i am getting many compilaton errors. Can you please suggest proper way to add/replace the files and what changes need to be done after adding files to CCS workspace?

    Hope to get a quick reply.

    Thanks & regards,

    Ankit Channa

  • - Could you post a screen dump or similar showing the changes you have done
    - Which compilation errors do you get?
  • Hi,

    I have tried to reduce as many errors as possible by adding path variables for CC13xxware, sdk and Xdc root manually with absolute path in code composer studio.

    Below are the compilation error that i am getting. Please help us.


    >> Compilation failure
    subdir_rules.mk:30: recipe for target 'rfPacketRx.obj' failed
    "C:/ti/xdctools_3_50_01_12_core/packages/xdc/std.h", line 86: fatal error #1965: cannot open source file "ti/targets/select.h"
    1 catastrophic error detected in the compilation of "../rfPacketRx.c".
    Compilation terminated.
    gmake: *** [rfPacketRx.obj] Error 1
    'Building file: ../ccfg.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/ti/xdctools_3_50_01_12_core/packages" --include_path="C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source" --include_path="C:/ti/xdctools_3_50_01_12_core" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc13xxware_2_04_02_17240" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="/kernel/tirtos/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --define=DEVICE_FAMILY=cc13x0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="ccfg.d" "../ccfg.c"
    'Finished building: ../ccfg.c'
    ' '
    'Building file: ../smartrf_settings/smartrf_settings.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/ti/xdctools_3_50_01_12_core/packages" --include_path="C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source" --include_path="C:/ti/xdctools_3_50_01_12_core" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc13xxware_2_04_02_17240" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="/kernel/tirtos/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --define=DEVICE_FAMILY=cc13x0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="smartrf_settings/smartrf_settings.d" --obj_directory="smartrf_settings" "../smartrf_settings/smartrf_settings.c"

    >> Compilation failure
    smartrf_settings/subdir_rules.mk:9: recipe for target 'smartrf_settings/smartrf_settings.obj' failed
    "C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/drivers/rf/RF.h", line 229: fatal error #1965: cannot open source file "ti/sysbios/BIOS.h"
    1 catastrophic error detected in the compilation of "../smartrf_settings/smartrf_settings.c".
    Compilation terminated.
    gmake: *** [smartrf_settings/smartrf_settings.obj] Error 1
    'Building file: ../RFQueue.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/ti/xdctools_3_50_01_12_core/packages" --include_path="C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source" --include_path="C:/ti/xdctools_3_50_01_12_core" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc13xxware_2_04_02_17240" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="/kernel/tirtos/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --define=DEVICE_FAMILY=cc13x0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="RFQueue.d" "../RFQueue.c"
    'Finished building: ../RFQueue.c'


    Thanks & regards,
    Ankit Channa
  • - Could you post a screen dump or similar showing the changes you have done

    The errors indicate that you use the newest SDK but at the same time you have include paths to an old TI-RTOS version?
  • Hi,

    I did below changes in CCS preprocessor includes.

    "${XDCROOT}/packages"
    "C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\bios_6_46_01_37\packages"
    "C:\ti\simplelink_cc13x0_sdk_1_30_00_06\source"
    "${XDCROOT}"
    "${PROJECT_ROOT}"
    "${INHERITED_INCLUDE_PATH}"
    "${COM_TI_SIMPLELINK_CC13X0_SDK_INCLUDE_PATH}"
    "${XDC_INCLUDE_PATH}"
    "C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\bios_6_46_01_37"
    "C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\cc13xxware_2_04_03_17272"
    "C:\ti\tirtos_cc13xx_cc26xx_2_21_00_06\products\tidrivers_cc13xx_cc26xx_2_21_00_04\packages"
    "${COM_TI_SIMPLELINK_CC13X0_SDK_INSTALL_DIR}/kernel/tirtos/packages/ti/sysbios/posix"

    Now I am getting following error with new SDK and newer version of tirtos.

     

    **** Build of configuration Debug for project rfPacketRx_CC1310DK_7XD_tirtos_ccs ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O

    'Building file: ../rfPacketRx.c'

    'Invoking: ARM Compiler'

    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --include_path="C:/ti/xdctools_3_50_01_12_core/packages" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages" --include_path="C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source" --include_path="C:/ti/xdctools_3_50_01_12_core" --include_path="D:/CCS_WORKSPACE_v7/rfPacketRx_CC1310DK_7XD_tirtos_ccs" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc13xxware_2_04_03_17272" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages" --include_path="C:/ti/simplelink_cc13x0_sdk_1_30_00_06/kernel/tirtos/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --define=DEVICE_FAMILY=cc13x0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="rfPacketRx.d"  "../rfPacketRx.c"

    'Finished building: ../rfPacketRx.c'

    ' '

    'Building target: rfPacketRx_CC1310DK_7XD_tirtos_ccs.out'

    'Invoking: ARM Linker'

    "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl" -mv7M3 --code_state=16 --float_support=vfplib -me --define=DEVICE_FAMILY=cc13x0 -g --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on -z -m"rfPacketRx_CC1310DK_7XD_tirtos_ccs.map" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="rfPacketRx_CC1310DK_7XD_tirtos_ccs_linkInfo.xml" --rom_model -o "rfPacketRx_CC1310DK_7XD_tirtos_ccs.out" "./CC1310DK_5XD.obj" "./RFQueue.obj" "./ccfg.obj" "./rfPacketRx.obj" "./smartrf_settings/smartrf_settings.obj" "../CC1310DK_5XD.cmd"  -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/display/lib/display.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/mw/lcd/lib/lcd.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/grlib/lib/grlib.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/drivers/rf/lib/rf_multiMode_cc13x0.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/drivers/lib/drivers_cc13x0.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/drivers/pdm/lib/pdm_cc13x0.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/kernel/tirtos/packages/ti/dpl/lib/dpl_cc13x0.aem3" -l"C:/ti/simplelink_cc13x0_sdk_1_30_00_06/source/ti/devices/cc13x0/driverlib/bin/ccs/driverlib.lib" -llibc.a

    <Linking>

    undefined first referenced

     symbol       in file    

    --------- ----------------

    ResetISR                  

    error #10234-D: unresolved symbols remain

    warning #10062-D: entry-point symbol "ResetISR" undefined

    warning #10202-D: no suitable entry-point found; setting to 0

    error #10010: errors encountered during linking; "rfPacketRx_CC1310DK_7XD_tirtos_ccs.out" not built

    gmake[1]: *** [rfPacketRx_CC1310DK_7XD_tirtos_ccs.out] Error 1

    >> Compilation failure

    makefile:155: recipe for target 'rfPacketRx_CC1310DK_7XD_tirtos_ccs.out' failed

    gmake[1]: Target 'secondary-outputs' not remade because of errors.

    gmake: *** [all] Error 2

    makefile:151: recipe for target 'all' failed

    Please suggest.

    Thanks & regards,

    Ankit Channa

  • Not sure what you are trying to do. It looks like you are mixing files from the SDK and TI-RTOS 2.21. If you want to change the board files you only should have to remove the files I have ringed from build and replace with the board files for your packet size/ board

  • Hi,

    I have already replaced the board files and removed other files. Below is the currrent setting of the workspace.And also attached the workspace. Please verify.

    rfPacketRx_CC1310DK_7XD_tirtos_ccs.zip

    The new error is given below.


     undefined              first referenced                                                                                        
      symbol                    in file                                                                                             
     ---------              ----------------                                                                                        
     __primary_heap_end__   D:\CCS_WORKSPACE_v7\tirtos_builds_CC1310DK_7XD_release_ccs\Debug\configPkg\package\cfg\release_pem3.oem3
     __primary_heap_start__ D:\CCS_WORKSPACE_v7\tirtos_builds_CC1310DK_7XD_release_ccs\Debug\configPkg\package\cfg\release_pem3.oem3

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

    >> Compilation failure
    makefile:160: recipe for target 'rfPacketRx_CC1310DK_7XD_tirtos_ccs.out' failed
    makefile:153: recipe for target 'all' failed
    gmake[1]: *** [rfPacketRx_CC1310DK_7XD_tirtos_ccs.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    gmake: *** [all] Error 2

    Thanks & regards,

    Ankit Channa

  • Hi, Ter

    Where is 5x5 chip support files inside folder C:\ti\simplelink_cc13x0_sdk_1_30_00_06?

    If I use 5x5  files from here e2e.ti.com/.../507505

    I'v got errors:

  • Some include paths have changed from the old TI-RTOS versions to the SDK:
    From: #include <inc/hw_memmap.h>
    To: #include <ti/devices/cc13x0/inc/hw_memmap.h>

    From: #include <driverlib/ioc.h>
    To: #include <ti/devices/cc13x0/driverlib/ioc.h>

    Look at the CC1310_LAUNCHXL files for the new path. The "new" and "old" files are build up in the same way, it's "just" to compare the path.

    It's an open ticket to include the 4XD and 5XD files into the SDK, not sure why there are not included at the moment.
  • Hi,

    I have changed all the paths in CC1310DK_5XD.c file. Even after changing all the paths i get below error.


    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "rfPacketTx_CC1310DK_7XD_tirtos_ccs.out" not built
    gmake[1]: *** [rfPacketTx_CC1310DK_7XD_tirtos_ccs.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    gmake: *** [all] Error 2

    >> Compilation failure
    makefile:159: recipe for target 'rfPacketTx_CC1310DK_7XD_tirtos_ccs.out' failed
    makefile:152: recipe for target 'all' failed

    Can you please suggest solution. I have attached updated source code.rfPacketTx_CC1310DK_7XD_tirtos_ccs-1.zip

    Regards,

    Ankit Channa