This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

memory_contigalloc problems of DM6437

Hello!

I want to create a contiguous buffer  to store 20 frames of image data in DM6437.  My choice is to use "memory_contigalloc " , but it fails.  In fact,  the heap size of DDR2 is set as 0x02000000 by the graohic DSP/BIOS Configuration Tool ,which is enough for storing data. DDR2 properties and MEM properties is as bellows:

     

1. DDR2 properties

  

2. MEM properties

question 1: How did that failure happen? What should we pay attention to before using that function?

question2:  Both memory_contigalloc, MEM_alloc and BUF_alloc can be used to creat large buffers. What is the differrence for different applications?

  • Hi,

    Thanks for your post.

    It all depends on how the linker splits the output sections among multiple memory ranges to achieve an efficient allocation. Please refer sections 8.5.4.6 & 8.5.4.7 in the c6000 assembly language tools user guide as below:

    http://www.ti.com/lit/ug/spru186x/spru186x.pdf

    Thanks & regards,

    Sivaraj K

     -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------