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.

Can I use malloc in DM6446?

Dear sir:

I am using DM6446 now and use dual core ARM+DSP architecture now.

I am suffering a memory problem.

I know that if I want to pass a buffer from ARM-side to DSP-side and get the output, I should use CMEM library to allocate a contiguous block of memory.

How about DSP-side memory?

In my core algorithm (of course XDAIS-compliant that can be run on the CE architecture), I want to use malloc in it and the buffer is just for DSP-side, no need to pass to ARM-side.

Can I use malloc because the size of the memory can be got only run time?

Or I should use memtab and allocate the memory in ALG_create, at the begging when using the module?

 

Thank you very much.

 

Penny

 

  • Penny said:
    Can I use malloc because the size of the memory can be got only run time?

    Nope.

    Penny said:
    Or I should use memtab

    Yep.  It's a XDAIS rule, and allows the system integrator to decide where to allocate your memory from.

    Chris