I'm working on a C6678 multi-core DSP with multiple .out files.
I'm trying to use the MessageQ to communicate with another core. I can do this using the heap:
Msg_DSPCommandResponse_t * msg2;
msg2 = &(the_Msg_DSPCommandResponse[0]);
//MessageQ_staticMsgInit(&(msg2->header), sizeof(Msg_DSPCommandResponse_t));
msg2 = (Msg_DSPCommandResponse_t *) MessageQ_alloc(HEAPID, sizeof(Msg_DSPCommandResponse_t));
if (msg2 == NULL) {
System_abort("MessageQ_alloc failed\n");
}
MessageQ_setMsgId(msg2, 0);
status = MessageQ_put(hapticsQ, (MessageQ_Msg) msg2);
if (status < 0) {
System_abort("MessageQ_put had a failure/error\n");
}
But rather than using the heap, how would I go about messageQ allocation without a heap using static messages?
Thanks in advance.