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.

SIMPLELINK-CC13X2-26X2-SDK: Rename SampleApp in SIMPLELINK-CC13X2-26X2-SDK

Part Number: SIMPLELINK-CC13X2-26X2-SDK
Other Parts Discussed in Thread: SYSCONFIG, CC1352P, TIMAC

Hi,

I'm trying to rename the Application Name in Sysconfig of a project based on simplelink_cc13x2_26x2_sdk_5_10_00_48's zr_sampleapp. However, the generated zclConfigInit function in zcl_config.h still has references to sampleApp_serviceTaskId inside the #ifdef BDB_REPORTING block. Changing C:\ti\simplelink_cc13x2_26x2_sdk_5_10_00_48\source\ti\zstack\.meta\templates\zcl_config.c.xdt, lines 436 and 567 to

  bdbString += '\tZstackapi_bdbRepAddAttrCfgRecordDefaultToListReq(' + appNameCamel + '_serviceTaskId,&Req);\n';

seems to fix it.

Also, I found that the Application dir is missing from the compiler includes.

I missed something when I imported the project?

Thanks,

   Robson

  • Hi Robson,

    Please see this E2E post for an explanation of the issue and workaround.  If the project builds without errors then all necessary compiler includes should be in place.

    Regards,
    Ryan

  • Hi Ryan,

    If I rename sampleapp.c/.h (and the corresponding #ifdefs in sampleapp.h), and change the included file in Application/ui/zcl_sample_app_def.h to the corresponding file, I get the build below. Removing the include dir "${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/zstack/apps/sampleapp" and adding "${PROJECT_ROOT}/Application" fixes the issue.

    Regards,

      Robson

    Invoking: Arm Compiler
    Flags: --cmd_file="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/Config/f8wrouter.opts" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O4 --opt_for_speed=0 --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/default" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/ota" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/ota" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/oad/CC13X2_CC26X2R1_LAUNCHXL" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/common/cc26xx/flash_interface" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/common/cc26xx/crc" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/StartUp" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/Services" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/ui" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/util" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Application/ZStackApi" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Common/gp" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Common/touchlink" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/af" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/bdb" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/Config" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/gp" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/HAL/Crypto" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/HAL/Platform" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/HAL/RF" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/MAC/HighLevel" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/MAC/LowLevel" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/MAC" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/nwk" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/osal_port" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/ROM" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/sec" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/sys" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/zdo" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/zmac" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Stack/ZStackTask" --include_path="C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/mt" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/osal" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/services/saddr" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/services/sdata" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/hal/crypto" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/hal/platform" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/hal/rf" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/af" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/bdb" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/bdb/touchlinkapp" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/gp" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/api" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/nwk" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/sec" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/sys" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/zcl" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/zdo" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/zmac" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/zmac/f8w" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/stack/ui" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/common/cui" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/fh" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/high_level" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/inc" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/inc/cc13xx" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/low_level/cc13xx" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/tracer" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/rom" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/heapmgr" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/osal_port" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/osal_port/osal_port_tirtos" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/common/nv" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/util" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/util" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/config" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/startup" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/api/inc" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/devices/cc13x2_cc26x2" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/devices/cc13x2_cc26x2/inc"
    Flags (cont-d): --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/devices/cc13x2_cc26x2/driverlib" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/common/time" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/zstack/apps/sampleapp" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/Common/zcl" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/ti154stack/common/boards" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48/source/ti/posix/ccs" --define=TIMAC_ROM_IMAGE_BUILD --define=TIMAC_ROM_PATCH --define=xCUI_DISABLE --define=MAX_STATUS_LINES=10 --define=ZSTACK_SECURITY --define=BOARD_DISPLAY_USE_UART --define=FREQ_2_4G --define=OSAL_PORT2TIRTOS --define=OSAL_PORT2TIRTOS_OSALMAP --define=ZDO_API_BASIC --define=TC_LINKKEY_JOIN --define=NV_RESTORE --define=NV_INIT --define=FEATURE_NON_BEACON_MODE --define=ZCL_STANDALONE --define=MAX_DEVICE_TABLE_ENTRIES=50 --define=NVOCMP_NVPAGES=2 --define=DEVICE_FAMILY=cc13x0 --define=DeviceFamily_CC13X2 --define=NO_CC1312R1_SUPPORT --define=CONFIG_PA_TYPE=APIMAC_HIGH_PA --define=CC1352P_2 -g --c99 --plain_char=unsigned --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --embedded_constants=on --unaligned_access=on --enum_type=packed --wchar_t=16 --abi=eabi --common=on --fp_reassoc=off --sat_reassoc=off --preproc_with_compile --preproc_dependency="Application/ui/zcl_sampleapps_ui.d_raw" --include_path="C:/Users/rpdmi/Desenvolvimento/Workspaces/Automacao/cc13x2/zr_sampleapp_CC1352P_4_LAUNCHXL_tirtos_ccs/default/syscfg" --obj_directory="Application/ui" --cmd_file="configPkg/compiler.opt"
    "C:/ti/ccs1031/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -@"Application/ui/zcl_sampleapps_ui_ccsCompiler.opt"

    >> Compilation failure
    Application/ui/subdir_rules.mk:9: recipe for target 'Application/ui/zcl_sampleapps_ui.obj' failed
    "..\Application\ui\zcl_sample_app_def.h", line 38: fatal error #1965: cannot open source file "testapp.h"
    1 catastrophic error detected in the compilation of "../Application/ui/zcl_sampleapps_ui.c".
    Compilation terminated.
    gmake: *** [Application/ui/zcl_sampleapps_ui.obj] Error 1

  • Thanks for letting me know Robson, I've alerted the Software Development Team that ${PROJECT_ROOT}/Application is missing (although other folders inside this directory are included) and should be added to the ARM Compiler Include Options search paths.

    Regards,
    Ryan