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.

Problem in allocating memory in 6467



HI,

      I used the "video_copy" demo  under dm6467 evm .

I am able to get right output when i am using small buffers passing through DSP.

I need to process 720*480 yuv file through it.

It is working fine when i am allocating small memory using malloc for small input file of size 1024 bytes.

But it is not giving right output when i am creating dynamic memory using malloc.

And I need to use malloc for allocating memory to process my algorithm.

Is there anything required that i need to change on heap size in cfg files.

Can anyone offer me a hand ...

Regards,

Praveen K

  • Hi Praveen,

    If you are passing this data from the ARM to the DSP and vice-versa, you should not be allocating memory using malloc, but rather through Memory_alloc as it is done in the example. Memory_alloc is used for allocation from shared memory between ARM and DSP. This memory needs to be physically contiguous in nature. In contrast, malloc is used for allocating memory that would be accessed solely on the local processor.

    For Memory_alloc to work, there needs to be enough memory allocated through CMEM - ie. there needs to be a pool that has buffers large enough for your allocation. The pools are defined when you insmod cmemk.ko. Refer to the DVSDK documentation for more details.

    Best regards,

    Vincent