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.

IPC using MessageQ - what memory is used.



I'm new to using the TI66678 and want to understand what memory is used by the MessageQ to communicate between processors.  I understand there is a 4 Mbyte shared memory buffer on chip and then there is external DRAM.  Is it possible to use either of these as the shared memory used by the MessageQ?  I see that one registers a heap with a MessageQ and I'm guessing that when the heap is created with HeapBufMP_create one selecting where the heap is being allocated from?  Thanks

  • Kerry Barnes said:
    I see that one registers a heap with a MessageQ and I'm guessing that when the heap is created with HeapBufMP_create one selecting where the heap is being allocated from?

    That's right, the heap that you register with MessageQ_registerHeap() is used by MessageQ_alloc().  This heap can be any kind of "MP" heap, such as HeapMemMP or HeapBufMP.  When creating a heap, the user has the option of specifying the base address/length of this heap, or the user can instead specify a SharedRegion from which to take the memory.  SharedRegions themselves can also have heaps, and you can retrieve a SharedRegion's heap handle and use that handle with MessageQ_registerHeap().

    Regards,

    - Rob