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.

How do I use the Z-Stack Sample Applications on the CC2531DK-Dongle?

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

I want to use 2 cc2531 usb dongles one as coordinator and another as end device to communicate between two computers.
we need to write program in IAR8051 IDE.
how to do this.
ZigBee stack is a separate software how to use this.
Am new to Zigbee technology.
Anyone having ideas pls share.

  • Hi,

    for using Z-Stack with CC2531, you should convert the sample application by setting up the IAR include paths to point the HAL directory for CC2530USB instead the default CC2530EB, and then including the files from that HAL target instead of the other.

    More information is on this thread: http://e2e.ti.com/support/low_power_rf/f/158/p/36068/128864.aspx#128864

    Hope this helps.

    -Leo-

  • Hi,

      What is the flash memory required for cc2531 Z-stack.

    thanks in advance

  • Hi abcd,

     

    Quoting the release notes of Z-stack 2.5.0 (for cc2530 device):

     - Memory sizes are shown below for the 3 ZigBee device types, with/without

       ZigBee-PRO, with/without Security, and compiled to run on the SmartRF05EB

       board with CC2530EM module. See the Z-Stack User's Guide for more details.

                                 Coordinator        Router         EndDevice

        PRO   SECURE     Flash/RAM      Flash/RAM      Flash/RAM

       ===  ======   ========   ========   ========

        On        On        158.4K/6.7K    158.2K/6.7K    128.2K/5.3K

        On        Off        149.2K/6.7K    148.0K/6.7K    120.1K/5.2K

        Off        On        147.1K/6.6K    146.9K/6.6K    121.9K/5.2K

        Off        Off        137.8K/6.6K    136.6K/6.6K    113.8K/5.2K

    -----------------------------------------------------------------------------------------------------

    So you better have the whole 256K at your disposal.

     

    Br,

    Igor

  • Hi  Sherer,

      Thanks for your quick reply. we have  cc2531 dongle with flash memory size 128k. How can we use this one if  Z stack memory is more than 130k.

    Its given that above memory requirement is for one of the sample application provided by Z stack. what does this mean?.

    waiting for your reply

     

    Thanks,

     

     

  • Hi abcd,

     

    Z-Stack comes with several examples of different projects, like sensors, Generic application, etc..,

    these are the "sample applications".

    As for the 128K issue, I'm not sure if it is enough to run a coordinator or a ZigBee router.

    I've reduced several of my projects (Coordinator and different routers) to ~136K, however, it still isn't

    small enough in your case, so bummer.

     

    Br,

    Igor

  • My IAR Embedded Workbench ran out of its trial period. All I need is to transform the cc2531 dongle into an endpoint for use with the lm3s9d96  zstack_collector app, so that I can use the dongle to have the PC communicate with the lm3s9d96 wirelessly. I assume the examples would work but I can't compile them anymore for the dongle. Could anyone do a big favor and post the .hex files for them, as I understand I could still program the dongle with a Flash programmer?

  • I not sure that will work.  I tried compiling HEX versions of several of my own Z-Stack projects in IAR.  I wanted to download them directly using CC debugger and Smart Studio.  However the resulting HEX files were too large to be downloaded.  Part of the problem appears to be the use of ASCII in representing HEX values.

  • Do you think you could try LM Flash Programmer tool? I recall reading that the dongle could be programmed with it.