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.

Latest ZigBee Light Link SW available for download!

Other Parts Discussed in Thread: Z-STACK, CC2530

Hello Connected Lighting fans,

Z-Stack Lighting 1.0.1 is now available for download on www.ti.com/z-stack

TI Z-Stack Lighting software release delivers ZigBee Light Link 1.0 capability on the CC2530 system-on-chip and includes ZLL certified sample applications for Color Remote Control and Color LED Light. Additionally incorporated is TI’s release of upgraded Z-Stack Core 2.6.0 software, now compliant with ZigBee 2012.

Please also have a look at the Wiki for additional examples and FAQ: http://processors.wiki.ti.com/index.php/Category:ZigBee_Light_Link

Enjoy!

  • Hi,

    I downloaded the Z-Stack Lighting 1.0.2 recently, and tried rebuilding the Z-Stack Lighting 1.0.2\Projects\zstack\ZLL\SampleApp\CC253x\SampleApp.eww. More specifically I was re-building the SampleLight-Zlight-Router. However I ran into the following link errors:

    Error[e46]: Undefined external "?V1" referred in AF ( C:\Texas Instruments\Z-Stack Lighting 1.0.2\Projects\zstack\ZLL\SampleApp\CC253x\Zlight - Router\Obj\AF.r51 )

    same errors for undefined "?V2" to "?V15".

    This SampleLight-Zlight-Router uses 3 pre-built libraries, Router-Pro.lib, Security.lib, TIMAC-CC2530.lib. Are those V1-V15 defined in those binaries?

    Any solutions/suggestions are very appreciated!

    Thanks,

    Debbie

  • I suppose you are using IAR version 8.30 but Z-Stack lighting uses 8.20. You can download correct IAR version at http://www.iar.com/Products/Wireless-solutions/Tools-for-TI-wireless

  • Thanks Yikai a lot for answering my multiple questions.

    I uninstalled the IAR 8.30 and re-installed 8.20. This time new compilation errors showed up for MAC, MWK, HAL and OSAL layers code. Have you built the Lighting 1.0.2 with 8.20 IAR?

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\osal\common\OSAL_Memory.c 177

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\osal\mcu\cc2530\OSAL_Nv.c 176

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Projects\zstack\ZMain\TI2530DB\OnBoard.c 98 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 459 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 467 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 556 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 575 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 593 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe167]: argument of type "unsigned char *" is  C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\mac\low_level\srf04\mac_autopend.c 611 

    incompatible with parameter of type "unsigned  char volatile __xdata *" 

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\stack\nwk\nwk_globals.c 148 

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\stack\nwk\nwk_globals.c 165 

    Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Lighting 1.0.2\Components\stack\nwk\nwk_globals.c 178

    Thanks,

    Debbie

  • Yes, I can build Z-Stack Lighting 1.0.2 without problem using IAR 8.20. Do you modify anything inside Z-Stack Lighting 1.0.2?

  • I installed 8.20 on a new machine, it built the light link SampleApp :).

    Strange though, in the new machine that built, the SampleLight was shown as "SampleLight - EB - Router", but on my original machine which didn't build, it was called "SampleLight - Zlight - Router".

    Which one should it be?

    Thanks,

    Debbie

  • SampleLight - EB - Router is for CC2530DK and SampleLight - Zlight - Router is for CC2530ZDK-ZLL. Both of them should be no problem to compile. I suggest you to remove IAR and Z-Stack Light on your original machine and reinstall to test again.

  • On my original machine, I installed IAR 8.30 then 8.20, somehow the license was still 8.30 because it didn't ask me to register for 8.20 IAR, that might be the reason why 8.20 didn't build. Anyway, I re-installed IAR 8.20 and the original Z-Stack Light source on my original machine, and registered a new 8.20 license, it built now.

    However, on two machines with 8.20 installed I can only build SampleLight-EB-Router. I can't find a way to build SampleLight-Zlight-Router with 8.20. The resulting Zlight-EB.hex doesn't work on the lightbulb with the original remote control (which I guess still running zlight version of remote control binary).

    I don't understand that with the same package of Z-Stack Light source, IAR 8.20 and 8.30 built different target binaries. Which file determines the configuration? aren't the config files f8wrouter.cfg, f8wconfig.cfg and f8wZCL.cfg?

    Thanks,

    Debbie

  • 1. Since you can build SampleLight-EB-Router, what do you mean you can't build SampleLight-Zlight-Router?

    2. The Z-Stack Lighting 1.0.2 library is built by IAR 8.20 so I suggest you using it. However, you can refer to my solution at  http://e2e.ti.com/support/wireless_connectivity/f/158/t/304927.aspx to build it by IAR 8.30.

  • Sorry my bad to confuse you: I used to see a  sampleApp\CC2530\Zlight-router folder when I failed to build with 8.30. Now with 8.20 I only generated sampleApp\CC2530\RouterEB-Pro folder and  sampleApp\CC2530\RouterEB-Pro\exe\Zllight-EB.hex I built doesn't work with the remote control shipped in the CC2530ZDK-ZLL package. The pre-built AllLight-ZLIGHT.hex included in the Z-Stack Lighting 1.0.2 works with the remote control.

    So my question is how to build from the  Z-Stack Lighting 1.0.2 source code package to generate AllLight-ZLIGHT.hex that works with the CC2530ZDK-ZLL remote control.

    And I installed 8.30 on a third fresh new machine, even though it still didn't build, it now generate a sampleApp\CC2530\RouterEB-Pro folder, instead of sampleApp\CC2530\Zlight-router folder, so I don't think this is determined by 8.20 or 8.30 and sorry for my wrong assumption in last email.

    I'm sticking with 8.20 as you recommended, I just need to rebuild the light firmware and make sure it works with the remote control first.

    Thanks for your patience.

    Debbie

  • You can select "SampleLight-Zlight-Router" from workspace and build it.

  • I got it and built the ZllLight-ZLIGHT.hex finally.

    Thanks so much, I owe you a big lunch :).

    Debbie