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.

Sensor Demo Software Rev.C Linking Error

Other Parts Discussed in Thread: Z-STACK, CC2531, CC2530EM, CC2530

After recently purchasing the CC2530ZDK I downloaded the SensorDemo (CC2530ZDK Sensor Demo Software (Rev. C) ) and I'm trying to build from the included source files but I'm getting an error during linking.

Here is what I have done so far:

- I downloaded and installed latest Z-Stack-Home 1.2.1 from here: http://www.ti.com/tool/z-stack

- I read the release notes and it states that the library and hex files were built and tested with IAR EW8051 8.30.3.

- I downloaded and installed IAR EW8051 8.30.3.

- Downloaded CC2530ZDK Sensor Demo Software (Rev. C) and unzip to where zstack is installed.

- I open the included IAR project. It says it needs to convert to new format, OK.

- I execute "Rebuild All". Everything compiles but I get the following error when Linking starts:

Error[e46]: Undefined external "ZDiagsUpdateStats::?relay" referred in APS ( C:\Texas Instruments\Z-Stack Home 1.2.1\Projects\zstack\Libraries\TI2530DB\bin\Router-Pro.lib )

Is there a way to make this work with the current version of the Z-Stack even if the Sensor Demo Software was made with an older version? Change some settings in the project options?

Thank you for reading this.

Jonathan

  • After recently purchasing the CC2530ZDK I downloaded the SensorDemo (CC2530ZDK Sensor Demo Software (Rev. C) ) and I'm trying to build from the included source files but I'm getting an error during linking.

    Here is what I have done so far:

    - I downloaded and installed latest Z-Stack-Home 1.2.1 from here: http://www.ti.com/tool/z-stack).
    - I read the release notes and it states that the library and hex files were built and tested with IAR EW8051 8.30.3.
    - I downloaded and installed IAR EW8051 8.30.3.
    - Downloaded CC2530ZDK Sensor Demo Software (Rev. C) and unzip to where zstack is installed.
    - I open the included IAR project. It says it needs to convert to new format, OK.
    - I execute "Rebuild All". Everything compiles but I get the following error when Linking starts:

    Error[e46]: Undefined external "ZDiagsUpdateStats::?relay" referred in APS ( C:\Texas Instruments\Z-Stack Home 1.2.1\Projects\zstack\Libraries\TI2530DB\bin\Router-Pro.lib )

    Is there a way to make this work with the current version of the Z-Stack even if the Sensor Demo Software was made with an older version? Change some settings in the project options?

    Thank you for reading this.

    Jonathan
  • The architecture of Z-Stack is changed so sensor demo cannot be compiled in latest Z-Stack Home. You can try to download Z-Stack mesh and put sensor demo inside to try again.
  • Thank you for responding. As suggested I have tried building "Sensor Demo" with Z-Stack mesh but that doesn't work either. I guess I'll try the examples included in the Z-Stack-Home.
  • Yes, you can try SampleTemperatureSensor in Z-Stack Home.
  • Hi,

    I had the same problem. I placed the Sample code in directory  and added the file Z-Stack Mesh 1.0.0\Components\stack\sys\ZDiags.c to the project. Now I was able to Build without error.

    I would like to use this example on USB-Stick CC2531 Dongle. Should this be possible ?

    I have a SmartRF06 EVA Kit. Can I use the Sample CC2538EM or does it only work on CC2530. If so Can I connect a CC2530EM to the SmartRF06 ?

    Thanks and best regards,

    Gerhard

  • To use CC2530EM, you have to use SmartRF05EB. To use CC2538EM, you need to use SmartRF06EB.