Hi,
Thank you for you testing! actually I do MessageQ_registerHeap in Core0 before MessageQ_open and MessageQ_alloc like this:
Int status;
/* Register this heap with MessageQ */
MessageQ_registerHeap((IHeap_Handle)SharedRegion_getHeap(0), HEAP_ID);
/* Open the 'next' remote message queue. Spin until it is ready. */
do {
status = MessageQ_open(queueName, &queueId);
}
while (status < 0);
printf("queueId = %d\n",queueId);
message = (Message *)MessageQ_alloc(HEAP_ID, sizeof(Message));
if (message == NULL) {
System_abort("MessageQ_alloc failed\n");
}
Besides, do you mean I should try to create NDK in main? Can you tell me how to do it? Thank you!