Hello,
I am programming DSP with RDK1.09 and found that in RDK mcfw, cmem and MMU is not enabled on DSP, so I can't do malloc on it, which would block algorithm programming. Could any expert give some advices about it? I would be very apprieciate.
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.
Hello,
I am programming DSP with RDK1.09 and found that in RDK mcfw, cmem and MMU is not enabled on DSP, so I can't do malloc on it, which would block algorithm programming. Could any expert give some advices about it? I would be very apprieciate.
Hi,
Can you use Syslink function : "Memory_alloc" .
From Syslink help :
Ptr Memory_alloc(IHeap_Handle heap, SizeT size, SizeT align, Ptr eb)
Allocates the specified number of bytes.
Parameters:
heap - Handle to the heap from which the memory is to be allocated. Specify NULL to allocate from local memory.
size - Amount of memory to be allocated.
align - Alignment constraints (power of 2)
eb - Not used. Pass as NULL.
Return values:
Pointer Success: Pointer to allocated buffer
NULL Failed to allocate memory
_________________
Regards.