• 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 Proprietary Software & SimpliciTI Forum » The stack 'XdataStack' is filled to 95% (4174 bytes used out of 4351). The warning threshold is set to 90.%
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

The stack 'XdataStack' is filled to 95% (4174 bytes used out of 4351). The warning threshold is set to 90.%

This question is not answered
SIDDHARTH TAUNK
Posted by SIDDHARTH TAUNK
on Sep 26 2011 02:31 AM
Prodigy50 points

Hello,

 

On trying to debug the code for CC2530, I get the following error at various stages of execution: "The stack 'XdataStack' is filled to 95% (4174 bytes used out of 4351). The warning threshold is set to 90.%"

 

I suspect that the stack overflows and corrupts the memory. I tried increasing the XData Stack size from 0xEFF to 0x10FF but the code bloats to fill the extra size allotted. I changed the compiler optimization level to "High" and optimized for "Size" rather than "Speed" to no avail.

 

How can I avoid the conditions that cause the above warning to show up?

 

Thanks,

 

Siddharth 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • SIDDHARTH TAUNK
    Posted by SIDDHARTH TAUNK
    on Sep 26 2011 08:06 AM
    Prodigy50 points

    The following is the IAR Workbench debug screenshot. It is puzzling to see that the XData stack warning comes up even though the memory window shows only initial values in the stack. Also, this is seen even before the first instruction in main() executes.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jim Noxon
    Posted by Jim Noxon
    on Sep 27 2011 18:10 PM
    Genius14940 points

    In the project options dialog, try unchecking the option to run to main.  Then reload code and see if the same error exists at the moment you are at the reset vector.  If it doesn't, see if you can step through the code to find the point where it fails.

    The picture you post is curious as normally there isn't any RAM at address 0x0000 in XData space.  This data should be flash data showing through in the unified memory map but I don't see anything that looks like code here.  The 0x80 value at 0x0000 should be your reset vector and should match your dissambly window at this point.  How the debugger even gets to main is a bit of a curiosity.

    Jim Noxon

    If this post has answered your question, even if not the way you wanted, please indicate so by clicking the     Verify Answer     button on this post.
    Please start a new thread if your question is not closely aligned with the original post in this thread as it makes searches more effective.
    If responding to a post please click the     Reply     button on the post you are responding to rather than merely defaulting to the bottom post.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hec
    Posted by hec
    on Sep 28 2011 02:13 AM
    Expert8120 points

    Jim Noxon
    The picture you post is curious as normally there isn't any RAM at address 0x0000 in XData space.  This data should be flash data showing through in the unified memory map but I don't see anything that looks like code here. 

    Jim, here I think you have confused the memory map of the CC2530 with the one of CC2430. In CC2530, the RAM is located at address 0x0000 in XDATA. See Page 25 of the CC253x user guide.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jim Noxon
    Posted by Jim Noxon
    on Sep 28 2011 13:58 PM
    Genius14940 points

    Thanks for the correction.  Note to self:  No more E2E posts from memory!  =D

    Jim Noxon

    If this post has answered your question, even if not the way you wanted, please indicate so by clicking the     Verify Answer     button on this post.
    Please start a new thread if your question is not closely aligned with the original post in this thread as it makes searches more effective.
    If responding to a post please click the     Reply     button on the post you are responding to rather than merely defaulting to the bottom post.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cig
    Posted by cig
    on Nov 02 2011 06:09 AM
    Prodigy220 points

    Hi,

    I've disabled the "Run to main" feature. The stack warning still comes up and this time on reaching "__program_start".

    The two images below are:

    1. Screenshot at reset.

     

     

    2. Screenshot at reaching __program_start, i.e. after executing the first instruction.

     

    3. On reaching ?RESET_SP, i.e. after executing second instruction.

     

    Thereafter, the stack remains full to 95% (3662 B) till the end of the program. As evident from the memory area seen above in each screenshot, they are on their initial values.

    Options selected:

    Device: CC2530F256

    Code Model: Banked

    Device Description File: ioCC2530F256.ddf

    Stack Sizes Selected:

    IDATA: 0x40

    PDATA: 0x80

    XDATA: 0xEFF

     

    CC2530 RF XDATA stack
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cig
    Posted by cig
    on Nov 02 2011 07:51 AM
    Prodigy220 points

    Hi,

    I've changed the "Calling convention" in the General Options. It was originally at "XDATA stack reentrant". I changed it to the only other option available viz. PDATA stack reentrant. I don't see the warning anymore but I'm worried if this will cause other issues. The change is shown in the screenshot below.

    XDATA CC2530 PDATA
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cig
    Posted by cig
    on Nov 09 2011 05:17 AM
    Prodigy220 points

    Hello,

    This problem is causing a major roadblock. Any help would be highly appreciated.

    Thanks in advance,

    cig

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jim Noxon
    Posted by Jim Noxon
    on Nov 09 2011 11:26 AM
    Genius14940 points

    I had a similar issue but fixed it by getting the latest updates from IAR.  You should move back to XDATA Stack Reentrant for your builds as well.

    Jim Noxon

    If this post has answered your question, even if not the way you wanted, please indicate so by clicking the     Verify Answer     button on this post.
    Please start a new thread if your question is not closely aligned with the original post in this thread as it makes searches more effective.
    If responding to a post please click the     Reply     button on the post you are responding to rather than merely defaulting to the bottom post.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • cig
    Posted by cig
    on Nov 13 2011 23:44 PM
    Prodigy220 points

    Hi Jim,

    Since I do not have a full version of IAR, I simply upgraded to the latest evaluation version. (I used to have 8.10.1 and now it's 8.10.3). I still see the same problem.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Matthias JUSTON
    Posted by Matthias JUSTON
    on May 25 2012 04:08 AM
    Intellectual510 points

    Hi,

    I have the same problem and my IAR version is 8.10.1.

    Matt

    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