Post Go back to editing

MCAPI vs Shared Memory

Category: Software
Product Number: adsp 21593


I would like to know the difference between the MCAPI vs MDMA vs Shared memory  to copy the data between cores and also which is optimized to implement,what are the advantages/disadvantages?

Thread Notes

  • Hi Nagaraj,

    MCAPI - It is officially supported in CCES, and we supply documentation and examples to help you get started. But it consumes core cycles. We usually apply this protocol for creating handshaking mechanism between cores and then use MDMA for data transmissions. You can refer BSP examples from the below path.
    C:\Analog Devices\EV-SC59x_EZ-KIT-Rel2.0.0\EV-SC59x_EZ-KIT\Examples\services\mcapi

    SHARED_MEMORY - Although it is possible to use other methods such as the SHARED_MEMORY method, these methods are not supported by the ARM tools, and it is an easy to make an error that can be difficult to identify later.
    The below Ezone link contains more information about SHARED_MEMORY concepts.

    MDMA - frees the processor core, allowing it to perform other operations while the data transfers between memories occurs as a background task.
    Please have a look into this EE-note377 for understanding how to transfer audio data between cores using MDMA and how to use MCAPI for establishing connection between cores.

    Hope this helps.

    Best Regards,

  • Hi Santhakumari,

    Thanks for your answers.