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.

关于建立不同的核上建立两个HEAP的问题。



6670上其中两个核分别建立HEAP,用于MessageQ的信息传递,并且都建立在一个share memory上。

但是使用MessageQ_register函数的时候输入的HeapID如何确定?

看了HEAP相关的函数,没有给出HeapID相关的定义。

打断点的时候显示HeapID为6万多。一般没有定义HeapID的时候默认的分别是多少?

  • messageQ 注册heapID可以从0开始依次递增,所以在注册的时候可以依次从0开始,后面再使用的时候如messageQ_alloc可以使用前面已经注册的heapID作为入参,参考pdk中IPC例程:C:\ti\pdk_C6670_1_1_2_6\packages\ti\transport\ipc\examples