AnsweredAssumed Answered

MyHeap usage not visible in expert linker window

Question asked by sbaude on Sep 27, 2010
Latest reply on Oct 13, 2010 by DavidS

Hi

 

I am using VDSP 5, update 8 with a VDK project on a custom hardware using the BF537 and 16MB external SDRAM.

 

I want to know my heap and stack usage, so followed the guides in the documentation. This works well for the system stack and heap as you can see in the attached screenshots VDSP-LDF_Heap.PNG and VDSP-LDF_Stack.PNG. So "show stack/heap usage" is set in the global properites of the expert linker window.

 

However, for the user defined heap "MyHeap" the expert linker does not show any usage as heap let alone the actual water mark after some time of program run.

The memory map looks like this:

 

heaps_and_stack_in_SCRATCHPAD0xffb00000
heaps_and_stack_in_SCRATCHPAD_length0xfb4
ldf_stack_space0xffb00000
ldf_stack_end0xffb00fb0
___l1_code_cache0x1
___l1_data_cache_a0x1
heaps_and_stack_in_L1_data_b0xff902000
heaps_and_stack_in_L1_data_b_length0x2000
ldf_heap_space0xff902000
ldf_heap_end0xff903ffc
ldf_heap_length0x1ffc
___l1_data_cache_b0x1
heaps_and_stack_in_L3_bank30xc000c0
heaps_and_stack_in_L3_bank3_length0x3ffef4
MyHeap_space0xc000c0
MyHeap_end0xffffb0
MyHeap_length0x3ffef0

 

a) Why is this so?

b) Is there a possibility to have a numeric value of heap and  stack usage instead of the rough estimation you get out of the visual  presentation in the expert linker window?

 

Thanks for your assistance!

Attachments

Outcomes