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/CC1352P: How did open CCS project from Zigbee plugin?

Part Number: CC1352P
Other Parts Discussed in Thread: CC2652R

Tool/software: Code Composer Studio

I try to open ZNP-Project from latest Zigbee .plugin nby IAR ARM 8.30 but get error compilation. Than i download and setup CCS 8 

But... How can I open project by CCS??  When I open File/open project from file system...  I dont see source of ZNP in workplace

  • You should use import and select CCS project to import ZNP.
  • See details below.
    Error: Import failed for project 'ccs' because its meta-data cannot be interpreted. Please contact support.

    This mistake for import
  • Try to do import from TI resource explorer in CCS.
  • reinstall all sdk by default way and CCS build all. But IAR have problem
  • Can you elaborate what IAR problem is?

  • When I try build i get next error.  The Iar 8.30

  • Do you have XDC tool install in c:\ti?
  • Try to use IAR 8.20.2.
  • When I use IAR 8.22.2 to build ZNP example, I see the same prebuilt action error. and can you help to verify this issue?
  • Do you have the CC13X2 2_20_00_71 SDK installed as well?

    I am using IAR EWARM 8.20.2 and am not encountering any errors for the ZNP project for CC1352P-2 ZNP project

    EDIT: Just to make sure, you do also have the SDK installed in c:\ti directory, correct? If not, you must manually modify the custom_argvars file to point to where the directory is located. Then clean the workspace, close & re-open workspace, then try it again.

    Best,

    Sean

  • I check the path. All installed to C:\ti
  • My recommendation is to please try reinstalling the SimpleLink Zigbee SDK Plugin 2.20 release, and use IAR EWARM 8.20.2.
  • Yes, I also have the CC13X2 2_20_00_71 SDK installed. Do you know where to download IAR EWARM 8.20.2?


  • You should be able to find IAR EWARM 8.20.2 here: netstorage.iar.com/.../EWARM-CD-8202-14838.exe

    I haven't tested IAR 8.22.2+ for these projects, only on 8.20.2, which I can confirm compiles the ZNP project for CC1352P-2 correctly.

    best,
    Sean
  • I reinstall IAR EWARM 8.20.2 and make sure I have xdctools_3_50_07_20_core installed under C:\ti\. However, I still see the following build error. Do you have any idea how to fix this?

    Building configuration: znp - Release
    Updating build tree...
    Performing Pre-Build Action
    Error while running "C:\ti\xdctools_3_50_07_20_core/xs" --xdcpath="C:\ti\simplelink_cc26x2_sdk_2_20_00_36\kernel\tirtos\packages;C:\ti\simplelink_cc26x2_sdk_2_20_00_36\source" iar.tools.configuro -c "C:\Program Files (x86)\IAR
    Systems\Embedded Workbench 8.0\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\bin\iccarm.exe" --device "CC2652R1F" --compileOptions "dummy.c -o C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\Debug\Obj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\ -fC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar/../../../common/config/f8wConfig.opts -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\znp\tirtos\iar/../../znp_cnf.opts -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\common\rtos\configPkg\compiler.opt.defs -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/tracer -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel/tirtos/packages -IC:\ti\
    xdctools_3_50_07_20_core/packages -IC:\ti\xdctools_3_50_07_20_core/packages/xdc -DZNP_NPI -DBDB_FINDING_BINDING_CAPABILITY_ENABLED=0 -DBOARD_DISPLAY_USE_UART -DICALL_MAX_NUM_TASKS=3
    -DNPI_USE_UART -DNPI -DCC26XX -DZCL_IDENTIFY -DZCL_READ -DZCL_BASIC -DZCL_ON_OFF -DAUTO_START -DxPOWER_MEAS -DMAC_PNM_MAX_NUMBER_OF_NODE=50 -DMAX_DEVICE_TABLE_ENTRIES=50
    -DxBOARD_DISPLAY_USE_UART -DxBOARD_DISPLAY_USE_LCD -DONE_PAGE_NVx -DONE_PAGE_NV_FULL_HDRx -DFREQ_2_4G -DAUTO_ACK -DAUTO_CSMA -DFEATURE_GREEN_POWER -DDEVICE_FAMILY=cc26x0
    -DDeviceFamily_CC26X2 -DCC26X2R1_LAUNCHXL -DCCFG_FORCE_VDDR_HH=0 -DSET_CCFG_BL_CONFIG_BL_LEVEL=0x00 -DSET_CCFG_BL_CONFIG_BL_ENABLE=0xC5 -DSET_CCFG_BL_CONFIG_BL_PIN_NUMBER=0x0D
    -DSET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE=0xC5 -DHEAPMGR_SIZE=16000 -DUSE_ICALL -DSTACK_LIBRARY -DxICALL_LITE -DxOSAL_PORT2TIRTOS -DRCN_APP_ASSERT -DHAL_ASSERT_SPIN
    -DICALL_HOOK_ABORT_FUNC=halAssertHandler -Dxdc_runtime_Log_DISABLE_ALL -Dxdc_runtime_Assert_DISABLE_ALL -DxPREAMBLE_COMPATIBILITY -DFEATURE_FULL_FUNCTION_DEVICE
    -DxFEATURE_ENHANCED_ACK -DFEATURE_SYSTEM_STATS -DZDO_API_BASIC -DTC_LINKKEY_JOIN -DOAD_KEEP_NV_PAGES -DNV_RESTORE -DNV_INIT -DxFEATURE_MAC_SECURITY
    -DFEATURE_NON_BEACON_MODE -DHOLD_AUTO_START -DDISABLE_GREENPOWER_BASIC_PROXY -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards/CC26X2R1_LAUNCHXL -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\
    iar\..\.. -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/mt -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/mt/icall -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/osal/src/common -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/osal/src/inc -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/osal/src/mcu/cc26xx -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\
    source\ti\zstack/services/src/aes -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/aes/cc26xx -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/nv -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/nv/cc26xx -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/services/src/saddr -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/sdata -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/appasrt -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\
    source\ti\zstack/stack/af -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/bdb -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\
    rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/gp -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall
    -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall/client -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall/server -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/stack/nwk -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/sec -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/sys -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/zcl -IC:\
    ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/zdo -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/npi/src/inc -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/zmac -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/zmac/f8w -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\znp\tirtos\iar\..\..\../common/znp_app -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/fh -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/high_level -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/ -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx/2_4g -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/tracer -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\../common -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/fh -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/high_level -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc/cc13xx -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx/2_4g -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/tracer -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/heapmgr -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/target/_common -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/target/_common/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/icall/src/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/rom -IC:\
    ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards/2_4g -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\../common/util -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\
    ../common/util -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\../common/config -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/api/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\ti\devices\cc13x2_cc26x2_v1 -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\
    ti\devices\cc13x2_cc26x2_v1/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\ti\devices\cc13x2_cc26x2_v1/driverlib -DBUILD_ALL_DEVICES --debug --silent -e --aeabi --thumb --diag_suppress=Pa050 -e --fpu=VFPv4_sp
    --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\INC\c\DLib_Config_Normal.h\" -Oh" --linkOptions "-o C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\
    tirtos\iar\Debug\Exe\znp.out --map C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\Debug\List\znp.map --config C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\
    rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\cc26x2lp.icf -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\..\..\common\rtos\configPkg\linker.cmd C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/devices/cc13x2_cc26x2_v1/driverlib/bin/iar/driverlib.lib C:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/display/lib/display.arm4f C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/grlib/lib/ccs/m4f/grlib.a C:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/drivers/lib/drivers_cc26x2_v1.arm4f C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/drivers/rf/lib/rf_multiMode_cc26x2_v1.arm4f C:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2_v1.arm4f C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\..\../../library/tirtos/iar/bin/nwk_dev_all_cc2652.a C:\ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack\library\tirtos\iar\
    bin/maclib_nosecure_cc2652_2_4g.a --silent --cpu=Cortex-M4F --redirect _Printf=_PrintfSmall --config_def ONE_PAGE_NV=1 --config_def ONE_PAGE_NV_FULL_HDR=1 --semihosting --entry __iar_program_start --vfe --text_out locale"
    --profile release --projFile "C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\znp\tirtos\iar\znp.ewp"

    Total number of errors: 1
    Total number of warnings: 0
  • Can you check to see if the only custom argvars loaded in your IAR is the project's custom argvars? (Tools -> Configure Custom Argument Variables).

    Then in the workspace tab, you should only see 'CC26x2 TI-RTOS' and inside Global should be nothing.

    To confirm you are attempting to compile the CC2652R ZNP project in IAR, judging from the log and not the CC1352P-2 ZNP project, correct?

  • Yes, I only see 'CC26x2 TI-RTOS' and inside Global should be nothing. I tried both CC2652R zc_light, CC2652R ZNP and CC1352P-2 ZNP project, all have the same error.
  • Can you help me to solve this issue? I had tried to reinstall everything but still see this issue.
  • YK,

    First please verify the following:
    (1) You have SimpleLink CC13X2 2_20_00_71 SDK, CC26X2 2_20_00_36 SDK, and Zigbee 2_20_00_06 SDK installed all inside of c:\ti.
    (2) Ensure you have CCS 8.1.0.00011 installed inside of c:\ti\ccsv8 directory. You must have v8 and not v7.

    If following statements above are true, then look below for trying to replicate/further debug this issue.

    If the above is true, then we are almost certain it has to do with the custom_argvars expanding improperly. It may be due to an issue with opening the project with an IAR version other than 8.20.2, as once the workspace is opened in IAR, the project file (.ewp) is expanded and could have potentially messed up the projects. I know going through these troubleshooting steps may be of some annoyance, but this is just to replicate exactly what me and a couple of other developers here have done to test that we are able to successfully build these projects.

    Firstly, when you're building can you be certain your logging 'All' and not just Warnings, so we can see if there are any other errors which may be shown to help? When you installed 8.20.2, did you install this as a new instance, or did you install IAR over the previous 8.22.2 installation?

    Since the project has already been opened, this means that the workspace might have opened and expanded the project files incorrectly. You may have to uninstall and re-install the Zigbee SDK one more time to ensure all fresh files.

    If you wish to test this before re-installing, just ensure you test it on a project which you have not opened before.

    1. Ensure you open IAR 8.20.2 and not 8.22.2. I have both versions as different installation instances, (i.e. 8.20.2 is in C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0; 8.22.2 is in C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0_2). Open IAR without opening any workspace initially.
    2. Once opened, check to verify that there are no global argvars loaded (Tools -> Configure Custom Argument Variables)
    3. After verifying there are no global argvars loaded, try and load up a clean, never before opened project.
    4. Verify that the custom argvars for that project are loaded correctly, and look to ensure that all the paths look correct as well.
    5. Try to build the project now and see if it builds successfully past the Pre-Build step.

    Best,
    Sean
  • 1. Yes, I have SimpleLink CC13X2 2_20_00_71 SDK, CC26X2 2_20_00_36 SDK, and Zigbee 2_20_00_06 SDK installed all inside of c:\ti and also have CCS 8.1.0.00011 installed inside of c:\ti\ccsv8 directory.

    2. I already remove IAR EWARM 8.22.2 and have 8.20.2 installed in C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0.

    3. I open IAR without opening any workspace initially and verify that there are no global argvars loaded

    4. I remove and reinstall all SDK and Zigbee plugin to make sure everything is new.

    5. I open zc_light.eww (inside C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar) from IAR EWARM 8.20.1.

    6. I verify that the custom argvars for that project are loaded correctly and I am sure all the paths look correct.

    7. Build the project but I still get the following Pre-Build Action Error... It's really frustrating....

    Building configuration: zc_light - Release
    Updating build tree...
     
    0  file(s) deleted.
    Updating build tree...
    Performing Pre-Build Action
    Error while running "C:\ti\xdctools_3_50_07_20_core/xs" --xdcpath="C:\ti\simplelink_cc26x2_sdk_2_20_00_36\kernel\tirtos\packages;C:\ti\simplelink_cc26x2_sdk_2_20_00_36\source" iar.tools.configuro -c "C:\Program Files (x86)\IAR  
    Systems\Embedded Workbench 8.0\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\bin\iccarm.exe" --device "CC2652R1F" --compileOptions "dummy.c -o C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\Debug\Obj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\ -fC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar/../../../common/config/f8wConfig.opts -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\zc_light\tirtos\iar/../../../common/config/f8wcoord.opts -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\common\rtos\configPkg\compiler.opt.defs -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/tracer -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel/tirtos/packages -IC:\ti\
    xdctools_3_50_07_20_core/packages -IC:\ti\xdctools_3_50_07_20_core/packages/xdc -DAUTO_ACK -DZCL_READ -DZCL_DISCOVER -DBDB_REPORTING -DZCL_WRITE -DZCL_BASIC -DZCL_IDENTIFY -DZCL_ON_OFF  
    -DZCL_SCENES -DZCL_GROUPS -DZCL_LEVEL_CTRL -DAUTO_START -DxPOWER_MEAS -DMAC_PNM_MAX_NUMBER_OF_NODE=50 -DMAX_DEVICE_TABLE_ENTRIES=50 -DBOARD_DISPLAY_USE_UART  
    -DxBOARD_DISPLAY_USE_LCD -DONE_PAGE_NVx -DONE_PAGE_NV_FULL_HDRx -DFREQ_2_4G -DAUTO_ACK -DAUTO_CSMA -DFEATURE_GREEN_POWER -DDEVICE_FAMILY=cc26x0 -DDeviceFamily_CC26X2  
    -DCC26X2R1_LAUNCHXL -DCCFG_FORCE_VDDR_HH=0 -DSET_CCFG_BL_CONFIG_BL_LEVEL=0x00 -DSET_CCFG_BL_CONFIG_BL_ENABLE=0xC5 -DSET_CCFG_BL_CONFIG_BL_PIN_NUMBER=0x0D  
    -DSET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE=0xC5 -DHEAPMGR_SIZE=16000 -DUSE_ICALL -DSTACK_LIBRARY -DxICALL_LITE -DxOSAL_PORT2TIRTOS -DRCN_APP_ASSERT -DHAL_ASSERT_SPIN  
    -DICALL_HOOK_ABORT_FUNC=halAssertHandler -Dxdc_runtime_Log_DISABLE_ALL -Dxdc_runtime_Assert_DISABLE_ALL -DxPREAMBLE_COMPATIBILITY -DFEATURE_FULL_FUNCTION_DEVICE  
    -DxFEATURE_ENHANCED_ACK -DFEATURE_SYSTEM_STATS -DZDO_API_BASIC -DTC_LINKKEY_JOIN -DOAD_KEEP_NV_PAGES -DNV_RESTORE -DNV_INIT -DxFEATURE_MAC_SECURITY  
    -DFEATURE_NON_BEACON_MODE -DHOLD_AUTO_START -DZCL_STANDALONE -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards/CC26X2R1_LAUNCHXL -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\.. -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\
    ..\source\ti\zstack/mt -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/mt/icall -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/osal/src/common -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/osal/src/inc -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/osal/src/mcu/cc26xx -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/aes -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\
    source\ti\zstack/services/src/aes/cc26xx -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/nv -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/nv/cc26xx -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/saddr -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/services/src/sdata -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/services/src/appasrt -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/af -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/bdb -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/bdb/touchlinkApp -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/gp -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\
    zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall/client -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/icall/server -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/nwk -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/stack/sec -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/sys -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/stack/zcl -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/stack/zdo -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/zmac -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\
    CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\zstack/zmac/f8w -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\..\..\..\..\source\ti\
    zstack/stack/ui -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/fh -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/high_level -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/inc/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/low_level/cc13xx/2_4g  
    -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/tracer -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/heapmgr -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/inc -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/target/_common -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/hal/src/target/_common/cc13xx -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/icall/src/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/ti154stack/rom -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/boards/2_4g -IC:\ti\
    simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\../common/util -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\
    tirtos\iar\..\..\../common/util -IC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\../common/config -IC:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack/common/api/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\ti\devices\cc13x2_cc26x2_v1 -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\
    ti\devices\cc13x2_cc26x2_v1/inc -IC:\ti\simplelink_cc26x2_sdk_2_20_00_36\source\ti\devices\cc13x2_cc26x2_v1/driverlib -DIAR_BUILD --debug --silent -e --aeabi --thumb --diag_suppress=Pa050 -e --fpu=VFPv4_sp --dlib_config \"C:\
    Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\INC\c\DLib_Config_Normal.h\" -Oh" --linkOptions "-o C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\
    Debug\Exe\zc_light.out --map C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\Debug\List\zc_light.map --config C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\
    rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\cc26x2lp.icf -fC:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\..\..\common\rtos\configPkg\linker.cmd C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/devices/cc13x2_cc26x2_v1/driverlib/bin/iar/driverlib.lib C:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/display/lib/display.arm4f C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/grlib/lib/ccs/m4f/grlib.a C:\ti\simplelink_cc26x2_sdk_2_20_00_36/source/ti/drivers/lib/drivers_cc26x2_v1.arm4f C:\ti\
    simplelink_cc26x2_sdk_2_20_00_36/source/ti/drivers/rf/lib/rf_multiMode_cc26x2_v1.arm4f C:\ti\simplelink_cc26x2_sdk_2_20_00_36/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2_v1.arm4f C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\
    examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\..\../../library/tirtos/iar/bin/nwk_zr_cc2652.a C:\ti\simplelink_cc26x2_sdk_2_20_00_36/examples/rtos/CC26X2R1_LAUNCHXL/ti154stack\library\tirtos\iar\
    bin/maclib_nosecure_cc2652_2_4g.a --silent --cpu=Cortex-M4F --redirect _Printf=_PrintfSmall --config_def ONE_PAGE_NV=1 --config_def ONE_PAGE_NV_FULL_HDR=1 --semihosting --entry __iar_program_start --vfe --text_out locale"  
    --profile release --projFile "C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zc_light\tirtos\iar\zc_light.ewp"
     
    Total number of errors: 1
    Total number of warnings: 0

  • Finally, I make it after remove and reinstall many times of IAR, CC26x2/CC13x2 SDK, and Zigbee Plugin. No idea of what is the root cause and why it is fixed. Anyway, Thanks for your help.