• 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 » Embedded Software » BIOS » BIOS forum » Heapmem
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Heapmem

Heapmem

This question is answered
Dushyant Sahni
Posted by Dushyant Sahni
on May 22 2012 07:02 AM
Intellectual355 points

Hi

I am into a migration exercise from DSP/BIOS to SYS/BIOS. There is a mechanism in the code where we want to report/print a message if a Memory_alloc fails to allocate the memory. The purpose of logging is to know from which memory sections, this allocation failed.

There are multiple segments in the memory map and for each section a heap memory is defined.

In DSP/BIOS, seg was of I32 type and in case of Sys/BIOS we have HeapMem_Handle.

The question is whether we have a provision in Sys/BIOS to associate a ID or probably determine the base address of the memory segment from which we are trying to allocate.

Getstats only provides the totalSize, FreeSize and LargestFreeSize.

Please comment.

Dushyant

 

SYS/BIOS
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • judahvang
    Posted by judahvang
    on May 22 2012 10:36 AM
    Verified Answer
    Verified by Dushyant Sahni
    Genius16715 points

    Dushyant,

    If I understand your question correctly, you want to know if there's a way you can find out from which memory segment did the Memory_alloc fail.

    I think the answer is yes.  For example, the HeapMem module in SYSBIOS has a function called HeapMem_getExtendedStats() which gives
    you information about the buffer from which memory is allocated.  The buffer address should be enough to let you know which segment it came from right?

    Does that answer your question?

    Judah

    If my reply answers your question please mark the thread as answered

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dushyant Sahni
    Posted by Dushyant Sahni
    on May 23 2012 04:11 AM
    Intellectual355 points

    Thanks Judah.

    HeapMem_getExtendedStats() works fine for what I want to achieve.

    -Dushyant

     

    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