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.

IAR Can't locate CC253X device include files

Other Parts Discussed in Thread: CC2538, Z-STACK

I have downloaded TI ZigBee Mesh and Home applications and I am trying to build the GenericApp for them with IAR ARM 6.5. I have not touched anything that I have downloaded from ZigBee Mesh or Home.

When I try to Rebuild All in IAR ARM, it gives several error lines that it can not find device include files. Below is a copy. I have chosen the right device in Project Option. Also the library file loations are not changed at all. I assume there should be a way to tell IAR where to find device include files. There is an option on C/C++> Preprocessor where you can tell line by line where to look for but that is not practical as there are many directory locations and it does not have an option to search all the sub-directories.

How can I tell IAR ARM device library path?(not all one by one)

Thank you in advance.

Error:

Building configuration: Boot - Image Boot Manager
Updating build tree...

4 file(s) deleted.
Updating build tree...
boot_main.c
Fatal Error[Pe1696]: cannot open source file "hw_nvic.h" C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\target\CC2538\hal_mcu.h 48
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\target\CC2538\"
searched: "C:\Texas Instruments\Z-Stack Home 1.2.1\Projects\zstack\OTA\Boot\CC2538\Source\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\include\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\c\"
Error while running C/C++ Compiler
hal_sys_ctrl.c
Fatal Error[Pe1696]: cannot open source file "hw_sys_ctrl.h" C:\Texas Instruments\Z-Stack Home 1.2.1\Components\hal\target\CC2538\hal_sys_ctrl.c 44
searched: "C:\Texas Instruments\Z-Stack Home 1.2.1\Components\hal\target\CC2538\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\include\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\target\CC2538\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\c\"
Error while running C/C++ Compiler
startup_ewarm.c
Fatal Error[Pe1696]: cannot open source file "hw_nvic.h" C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\target\CC2538\hal_mcu.h 48
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\target\CC2538\"
searched: "C:\Texas Instruments\Z-Stack Home 1.2.1\Projects\zstack\OTA\Boot\CC2538\Source\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\"
searched: "C:\Users\Arash\Documents\pulseiq\firmware\cc253x\Texas Instruments\Z-Stack Home 1.2.0\Components\hal\include\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\"
searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\c\"
Error while running C/C++ Compiler

Total number of errors: 3
Total number of warnings: 0

  • In project options go to C/C++ compiler tab and then in the  Preprocessor tab, add the paths to all the necessary include files.

  • Is there a way to have it include sub-directories automatically? This way I have to manually enter many 50+ directories
  • Ideally the stack should install and build in IAR without having to change any paths. I just tested the stack on IAR 7.3. 

    Attached is the path environment for the project. Try changing yours to this.

  • Thanks. Do you suspect is the UAR version I am using or if project file (.eww) is corrupted some how? We use this version for compatibility purposes.
  • Hi Dan,
    What Z-Stack version do you use? Z-Stack Home 1.2.0 or 1.2.1? If you use 1.2.0, you should use IAR for ARM version 6.50.5. If it is Z-Stack Home 1.2.1, you should use IAR for ARM version 7.20.1.
  • Hi Dan ,

    I was able to build the project in IAR 6.7 by copying project options from IAR 7.3. IAR 6.7 gave me broken link errors so i believe this may have to do with the versions.

    See if the steps below help in IAR 6.5.

    1. Copy paste the include paths in the preprocessor pane:

      $PROJ_DIR$\..\Source

    $PROJ_DIR$\..\..\..\Zmain\TI2538DB

    $PROJ_DIR$\..\..\..\..\..\Components\hal\include

    $PROJ_DIR$\..\..\..\..\..\Components\hal\target\CC2538

    $PROJ_DIR$\..\..\..\..\..\Components\driverlib\cc2538\inc

    $PROJ_DIR$\..\..\..\..\..\Components\driverlib\cc2538\source

    $PROJ_DIR$\..\..\..\..\..\Components\sdriverlib\cc2538\source

    $PROJ_DIR$\..\..\..\..\..\Components\bsp\srf06eb_cc2538\drivers\source

    $PROJ_DIR$\..\..\..\..\..\Components\mac\include

    $PROJ_DIR$\..\..\..\..\..\Components\mac\high_level

    $PROJ_DIR$\..\..\..\..\..\Components\mac\low_level\srf05\single_chip

    $PROJ_DIR$\..\..\..\..\..\Components\mac\low_level\srf05

    $PROJ_DIR$\..\..\..\..\..\Components\mt

    $PROJ_DIR$\..\..\..\..\..\Components\osal\include

    $PROJ_DIR$\..\..\..\..\..\Components\services\sdata

    $PROJ_DIR$\..\..\..\..\..\Components\services\saddr

    $PROJ_DIR$\..\..\..\..\..\Components\stack\af

    $PROJ_DIR$\..\..\..\..\..\Components\stack\nwk

    $PROJ_DIR$\..\..\..\..\..\Components\stack\sapi

    $PROJ_DIR$\..\..\..\..\..\Components\stack\sec

    $PROJ_DIR$\..\..\..\..\..\Components\stack\sys

    $PROJ_DIR$\..\..\..\..\..\Components\stack\zdo

    $PROJ_DIR$\..\..\..\..\..\Components\zmac

    $PROJ_DIR$\..\..\..\..\..\Components\zmac\f8w

    2. Copy paste the below in "Defined symbols: (one per line) box in the Preprocessor window pane

    FEATURE_RESET_MACRO

    ewarm

    ZTOOL_P1

    MT_TASK

    MT_SYS_FUNC

    CC2538_USE_ALTERNATE_INTERRUPT_MAP=1

    MT_ZDO_FUNC

    LCD_SUPPORTED=DEBUG

    3. Copy paste the below in the "Extra Options" tab of the C/C++ Compiler category.

    -f $PROJ_DIR$\..\..\..\Tools\CC2538DB\f8wConfig.cfg

    -f $PROJ_DIR$\..\..\..\Tools\CC2538DB\f8wCoord.cfg

  • Forgot to mention that the above is for the GenericApp project of the Z-Stack Mesh 1.0.0 software.
    You can follow a similar approach for Zigbee Home as well.
  • Thanks a lot for detailed effort.
    I tried ZigBee Mesh 1.0 on IAR 6.5 with exact same config as yours above. It passed finding files but gave a lot of errors in Linking stage telling "no definition" errors. I have also to manually enter the Target Processor to ARM-M3. I don't know if there are other details other than yours and target type that needs to be configured manually. 

    Below is copy of output after making proper configs: 


    Linking
    Error[Li005]: no definition for "macBackoffTimerRolloverCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_backoff_timer.o]
    Error[Li005]: no definition for "IntMasterDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    mac_mcu.o]
    Error[Li005]: no definition for "IntMasterEnable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    mac_mcu.o]
    Error[Li005]: no definition for "macBackoffTimerTriggerCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_backoff_timer.o]
    Error[Li005]: no definition for "IntPendClear" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_sleep.o]
    Error[Li005]: no definition for "macDataRxMemFree" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\mac_rx.o]
    Error[Li005]: no definition for "macDataTxTimeAvailable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_tx.o]
    Error[Li005]: no definition for "macTxCompleteCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_tx.o]
    Error[Li005]: no definition for "IntAltMapEnable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_assert.o]
    Error[Li005]: no definition for "GPIOPinTypeGPIOOutput" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_assert.o]
    Error[Li005]: no definition for "GPIOPinWrite" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_assert.o]
    Error[Li005]: no definition for "GPIOPinTypeGPIOInput" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_assert.o]
    Error[Li005]: no definition for "GPIOPinRead" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_assert.o]
    Error[Li005]: no definition for "GPIOIntWakeupEnable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "GPIOIntWakeupDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "GPIOPowIntTypeSet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlPeripheralDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlPeripheralEnable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlPeripheralReset" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlPeripheralSleepDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlPeripheralDeepSleepDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_sys_ctrl.o]
    Error[Li005]: no definition for "IOCPadConfigSet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysCtrlClockSet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_sys_ctrl.o]
    Error[Li005]: no definition for "macDataRxMemAlloc" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\mac_rx.o]
    Error[Li005]: no definition for "macRxCheckMACPendingCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_rx.o]
    Error[Li005]: no definition for "macRxCheckPendingCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_rx.o]
    Error[Li005]: no definition for "macRxCompleteCallback" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\mac_rx.o]
    Error[Li005]: no definition for "pMacDataTx" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    mac_rx.o]
    Error[Li005]: no definition for "UARTIntClear" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_uart.o]
    Error[Li005]: no definition for "UARTCharPutNonBlocking" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_uart.o]
    Error[Li005]: no definition for "UARTCharGetNonBlocking" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\hal_uart.o]
    Error[Li005]: no definition for "UARTCharsAvail" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_uart.o]
    Error[Li005]: no definition for "bspKeyPushed" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_key.o]
    Error[Li005]: no definition for "GPIOPowIntClear" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_sys_ctrl.o]
    Error[Li005]: no definition for "SysTickIntDisable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    OSAL_Clock.o]
    Error[Li005]: no definition for "SysTickIntEnable" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    OSAL_Clock.o]
    Error[Li005]: no definition for "macEventLoop" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    OSAL_GenericApp.o]
    Error[Li005]: no definition for "nwk_event_loop" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    OSAL_GenericApp.o]
    Error[Li005]: no definition for "APS_event_loop" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    OSAL_GenericApp.o]
    Error[Li005]: no definition for "APSF_ProcessEvent" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\OSAL_GenericApp.o]
    Error[Li005]: no definition for "NLME_GetShortAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\AF.o]
    Error[Li005]: no definition for "RTG_CheckRtStatus" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\AF.o]
    Error[Li005]: no definition for "NLME_IsAddressBroadcast" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\AF.o]
    Error[Li005]: no definition for "APSDE_DataReq" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    AF.o]
    Error[Li005]: no definition for "apsfSendFragmented" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\AF.o]
    Error[Li005]: no definition for "APSDE_DataReqMTU" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\AF.o]
    Error[Li005]: no definition for "lcdBufferPrintString" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_lcd.o]
    Error[Li005]: no definition for "lcdSendBuffer" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    hal_lcd.o]
    Error[Li005]: no definition for "NLME_GetExtAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDProfile.o]
    Error[Li005]: no definition for "nwkTransmissionFailures" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDNwkMgr.o]
    Error[Li005]: no definition for "NLME_EDScanRequest" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDNwkMgr.o]
    Error[Li005]: no definition for "_NIB" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\ZDNwkMgr.o]
    Error[Li005]: no definition for "NLME_SetUpdateID" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDNwkMgr.o]
    Error[Li005]: no definition for "SysCtrlReset" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "FlashMainPageErase" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\armcm3flashutil.o]
    Error[Li005]: no definition for "SSP_ReadNwkActiveKey" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "nwkFrameCounterChanges" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "NLME_StartRouterRequest" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "NLME_SetPollRate" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "APSME_HoldDataRequests" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "AssocGetWithShort" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "AddrMgrEntryGet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "AssocRemove" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "AddrMgrEntryRelease" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "AddrMgrExtAddrSet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "AddrMgrEntryLookupExt" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "AssocGetWithExt" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "NLME_LeaveReq" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "APSME_RemoveDeviceReq" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "NLME_ReadNwkKeyInfo" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "APSME_TransportKeyReq" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "AddrMgrEntryUpdate" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "NWK_TaskID" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "NLME_GetEnergyThreshold" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "NLME_SetEnergyThreshold" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "APS_SetEndDeviceBindTimeout" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "AIB_MaxBindingTime" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDObject.o]
    Error[Li005]: no definition for "APSME_LookupNwkAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "APSME_BindRequest" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDObject.o]
    Error[Li005]: no definition for "APSME_UnBindRequest" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "saveExtAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDProfile.o]
    Error[Li005]: no definition for "AddrMgrEntryLookupNwk" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\BindingTable.o]
    Error[Li005]: no definition for "nwkNeighborRemoveAllStranded" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "NLME_CheckNewAddrSet" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "NLME_GetCoordExtAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "NLME_GetCoordShortAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "AssocChangeNwkAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDObject.o]
    Error[Li005]: no definition for "nwkNeighborUpdateNwkAddr" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "RTG_RemoveRtgEntry" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDObject.o]
    Error[Li005]: no definition for "pNwkNotMyChildListDelete" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "AssocMakeList" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDProfile.o]
    Error[Li005]: no definition for "NLME_NetworkFormationRequest" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDObject.o]
    Error[Li005]: no definition for "NLME_SetBroadcastFilter" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error[Li005]: no definition for "SSP_UpdateNwkKey" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\
    Obj\ZDApp.o]
    Error[Li005]: no definition for "SSP_SwitchNwkKey" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "nwkFrameCounter" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "SSP_Init" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDSecMgr.o]
    Error[Li005]: no definition for "APSME_SecurityRM_CD" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDSecMgr.o]
    Error[Li005]: no definition for "nwk_ExtPANIDValid" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\Coordinator\Obj\
    ZDApp.o]
    Error[Li005]: no definition for "AIB_apsUseExtendedPANID" [referenced from C:\Texas Instruments\Z-Stack Mesh 1.0.0\Projects\zstack\Samples\GenericApp\CC2538\
    Coordinator\Obj\ZDApp.o]
    Error limit reached

    Error while running Linker

  • I was able to Build Home 1.2.1 with 7.30. It failed giving Broken links in 6.5.
  • Different Z-Stack version uses different IAR version. I suggest use IAR version that is described in release note.
  • I still have linking problem even using the version in release notes. (6.50.5 with zstack home 1.2.0)
    any thoughts?

    4 file(s) deleted.
    Updating build tree...
    boot_main.c
    hal_sys_ctrl.c
    startup_ewarm.c
    Linking
    Error[Li005]: no definition for "SysCtrlReset" [referenced from C:\Texas Instruments\Z-Stack Home 1.2.0\Projects\zstack\OTA\Boot\CC2538\Image_Boot_Manager\Obj\
    startup_ewarm.o]
    Error[Li005]: no definition for "IntMasterDisable" [referenced from C:\Texas Instruments\Z-Stack Home 1.2.0\Projects\zstack\OTA\Boot\CC2538\Image_Boot_Manager\Obj\
    boot_main.o]
    Error[Li005]: no definition for "SysCtrlDeepSleep" [referenced from C:\Texas Instruments\Z-Stack Home 1.2.0\Projects\zstack\OTA\Boot\CC2538\Image_Boot_Manager\Obj\
    boot_main.o]
    Error[Li005]: no definition for "SysCtrlPeripheralDeepSleepDisable" [referenced from C:\Texas Instruments\Z-Stack Home 1.2.0\Projects\zstack\OTA\Boot\CC2538\
    Image_Boot_Manager\Obj\hal_sys_ctrl.o]
    Error while running Linker
  • If you configure Linker in Project Option as below it will work and give no errors:

    Linker:
    config: $PROJ_DIR$\Source\cc2538.icf
    Linker/library:
    $PROJ_DIR$\..\..\..\..\..\Components\driverlib\cc2538\bin\iar\sdriverlib.lib
    $PROJ_DIR$\..\..\..\..\..\Components\bsp\srf06eb_cc2538\drivers\bin\iar\bsp.lib

    __iar_program_start