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.

Memory Requirement of Z Stack for MSP430 + CC2520 dual-chip solution.

Other Parts Discussed in Thread: CC2520, TIMAC, Z-STACK, MSP430F5438, MSP430F2618

Hi, 

We are planning to implement the Zigbee RF protocol in  MSP430 + CC2520 dual-chip solution.  Can you please provide 

1. What is memory requirement(Flash and RAM) for the  implementing the Zigbee stack and TIMAC and also can you please provide the examples for starting with design and implementation in CCS Studio environment. 

Thank and regards, 

Santhosh Kumar V

  • Hi Santhosh,

    This question will get more attention in the ZigBee, 6LoWPAN & 802.15.4 MAC Forum and has been moved accordingly.

    Regards,
    Ryan
  • If I am not wrong, there is only Z-Stack Energy supports MSP430+CC2520 HW. Do you only want to run Zigbee Smart Energy Profile?
  • Yes, I am planned to use "Z-Stack Energy" as i am using MSP430+CC2520. I have downloaded and installed "Z-Stack Energy 1.1.0".

    1. For selecting the right MSP430 micro controller, I am trying to identify what is min. memory(Flash and RAM) requirement for implementing Z-Stack in MSP430+CC2520.
    2. May i know what are the Zigbee layers "Z-Stack Energy " covers. Whether it covers Datalink layer(MAC layer) and Network layer. ?. or else we need to integrate TIMAC layer separately.


    Thanks and regards,
    Santhosh Kumar V
  • anyone please reply to my above question.
  • Anyone please reply to my below question.
  • 1. There are different type of nodes, coordinator, router, or end device. They are all different. I suggest that you can build SampleApp in Z-Stack Energy 1.1.0 to get map file which will show you memory(Flash and RAM) usages.
    2. Z-Stack Energy 1.1.0 covers MAC and Network layer. You don't have to integrate TIMAC.
  • Hi Yikai chen, 

    Yes it is good idea to look-in to the map file for RAM and flash usage.

    I have downloaded the IAR work bench for MSP430.  And i am using SampleApp - ESP - Coordinator.

    1. In the process of compilation i got the following errors. 

    Fatal Error[e72]: Segment ZIGNV_ADDRESS_SPACE must be defined in a segment definition option (-Z, -b or -P)

    Error while running Linker

    2. By reading few blogs, I realized the linker file .xcl to be modified or path to be changed according the project.   

    So, Now i am using the "MSP430F5438.xcl" linker file under the path "C:\Texas Instruments\Z-Stack Energy 1.1.0\Projects\zstack\Tools\MSP5438". 

    3. After the changes above error got solved but i got new error as below

    Fatal Error[e72]: Segment CODE_I must be defined in a segment definition option (-Z, -b or -P)

    Error while running Linker

     

    Please help me to resolve the problem, and if you have any compiled code.  Please provide the .xcl linker file and please provide the memory map file. 

     

  • Do you use MSP430EXP5438 to run the example?
  • For prototyping we planned to use MSP430EXP5438. But we planned to use MSP430F261x for the real hardware/product. Since we have few hardware constrain in the PCB board size we are planning to use MSP430F2618.

    My doubt is whether 116kb flash and 8kb of RAM is sufficient to execute the z-stack energy since we are planning to use MSP430F2618.
  • You can build Sample example of MSP430EXP5438 and check map file to know it.
  • Hi Yikai chen,

     i am using SampleApp - ESP - Coordinator. But i am getting below errors. 

    1. In the process of compilation i got the following errors.

    Fatal Error[e72]: Segment ZIGNV_ADDRESS_SPACE must be defined in a segment definition option (-Z, -b or -P)

    Error while running Linker

    2. By reading few blogs, I realized the linker file .xcl to be modified or path to be changed according the project.  

    So, Now i am using the "MSP430F5438.xcl" linker file under the path "C:\Texas Instruments\Z-Stack Energy 1.1.0\Projects\zstack\Tools\MSP5438".

    3. After the changes above error got solved but i got new error as below

    Fatal Error[e72]: Segment CODE_I must be defined in a segment definition option (-Z, -b or -P)

    Error while running Linker

    Please help me to resolve the problem, and if you have any compiled code.  Please provide the .xcl linker file and please provide the memory map file.

    Thanks and regards,

    Santhosh Kumar V

  • Z-Stack Smart Energy 1.1.0 use IAR EW430 version 5.51.6 as its IDE. I suggest you to download IAR EW430 version 5.51.6 from processors.wiki.ti.com/.../IAR_Embedded_Workbench_Kickstart_for_TI_MSP430_Release_Notes to build it.
  • After using  EW430 version 5.51.6 as its IDE, the example softwares(sample app) are working fine. Thank you very much. 

    I got the below information form the MAP file.

    112 042 bytes of CODE  memory

     12 630 bytes of DATA  memory (+ 136 absolute )

      5 075 bytes of CONST memory

    Errors: none

    Warnings: none

    **********************************************************************************************

    I have one more doubt/question.

    According to the document "MSP430™ MCUs, Passive RF and Low-Power RF Solutions Guide" - sly265f.pdf

    It as mentioned MSP430f261x supports Zigbee and Zigbee PRO.   But the minimum requirement of the Z-stack seems to be as be below (generated from map file)

    112 042 bytes of CODE  memory

     12 630 bytes of DATA  memory (+ 136 absolute )

      5 075 bytes of CONST memory;

    But the memory available in  MSP430f261x in 116kb Flash and 8Kb of RAM.  So, available memory is less then the required memory. 

    Can you please help me to understand the above conflict. 

  • When you build this, do you set IAR optimization to High "Size"?
  • I suppose old version of TIMAC might be able to fit into MSP430F261x. However, the latest TIMAC 1.5.2 might not and that's why it only provide MSP430EXP5438 example.
  • Hi,
    The memory which i have mention is for Z-Stack not for TIMAC, TIMAC consumes very less memory compared to Z-Stack.
  • So, what's your question?
  • My question is,

    After using  EW430 version 5.51.6 as its IDE, the example softwares(sample app) are working fine. Thank you very much.

    I got the below information form the MAP file.

    112 042 bytes of CODE  memory

    12 630 bytes of DATA  memory (+ 136 absolute )

     5 075 bytes of CONST memory

    Errors: none

    Warnings: none

    **********************************************************************************************

    I have one more doubt/question.

    According to the document "MSP430™ MCUs, Passive RF and Low-Power RF Solutions Guide" - sly265f.pdf

    It as mentioned MSP430f261x supports Zigbee and Zigbee PRO.   But the minimum requirement of the Z-stack seems to be as be below (generated from map file)

    112 042 bytes of CODE  memory

    12 630 bytes of DATA  memory (+ 136 absolute )

     5 075 bytes of CONST memory;

    But the memory available in  MSP430f261x in 116kb Flash and 8Kb of RAM.  So, available memory is less then the required memory.

    Can you please help me to understand the above conflict.

  • I guess this is an obsolete document. When it was published, I think Z-Stack can be fitted into MSP430f261x. With latest Z-Stack, MSP430f261x is not enough that's why you only see example using MSP430EXP5438.