• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF ZigBee® Software & IEEE 802.15.4 Forum » Memory usage: Can we reduce XDATA for Stack in order to increase INT_HEAP_LEN?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Memory usage: Can we reduce XDATA for Stack in order to increase INT_HEAP_LEN?

Memory usage: Can we reduce XDATA for Stack in order to increase INT_HEAP_LEN?

This question is not answered
Rui Zhang69778
Posted by Rui Zhang69778
on Apr 05 2012 11:51 AM
Genius4505 points

I have noticed that new  IAR EW8.10 can not accommodate the same size of INT_HEAL_LEN as in old IAR tool. Also the new Z stack 2.5.0 consumes more RAM than Z stack 1.4.3. Somehow I ran out of heap memory and I need to reduce INT_HEAP_LEN. However, our application requires as much as possible heap size for OSAL. so I have several options and I want get some advices:

1. Code optimization. reducing some unnecessary code, but I don't know which part I can reduce in z stack

2. I noticed that XSTACK occupies 0x300 bytes, which is little bit more for my point of view. I remember XSTACK is for call convention parameters. So considering it is single threading with moderate Interrupts and not so many reentrant calls. Can I reduce the XSTACK size in order to increase INT_HEAP_LEN?

thanks

Rui

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Rui Zhang69778
    Posted by Rui Zhang69778
    on Apr 05 2012 16:51 PM
    Genius4505 points

    I dig into this field and have some findings. The new Z stack 2.5.0 seems to occupy more RAM than 1.4.3

    Z stack 1.4.3 memory map:

     117 453 bytes of CODE  memory
          18 bytes of DATA  memory (+ 85 absolute )
       7 928 bytes of XDATA memory (+  8 absolute )
         192 bytes of IDATA memory
           8 bits  of BIT   memory

    Z stack 2.5.0 memory map:

     153 338 bytes of CODE  memory
          32 bytes of DATA  memory (+ 70 absolute )
       7 935 bytes of XDATA memory
         192 bytes of IDATA memory
           8 bits  of BIT   memory
         125 bytes of CONST memory

    Actually Z stack 2.5.0 occupies larger XDATA size(7935 vs 7928), but I get much less INT_HEAP_LEN for OSAL memory allocation(200 Bytes or so). Can anyone explain why this happen? Because Z stack occupy more XDATA so we don't have that much for heap? Is there anyway I can turn down some of functions to give out more memory?

    Rui

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • xyzzy
    Posted by xyzzy
    on Apr 06 2012 14:35 PM
    Expert4665 points

    Please take a look at my reply to your other post regarding INT_HEAP_LEN. There are some suggestions for "finding" RAM that can be added to your INT_HEAP_LEN.

    As you suspect, the default size of the parameter stack may be larger that your application needs. You should determine your device's stack "high water mark" and try reducing the stack size accordingly - perhaps leaving 10%-20% headroom.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use