TI E2E Community
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.
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 givesyou 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?
If my reply answers your question please mark the thread as answered
HeapMem_getExtendedStats() works fine for what I want to achieve.
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.