Using IPC 1.21.02.23 with CCSv4 and SYS/BIOS 6.30.02.32 for the C6472 platform.
Is it alright to call MessageQ_alloc( ) from a helper function outside the function where a heap is registered and a MessageQ is explicitly opened? For example, I have a BIOS Task MyTask( ) that registers with a SharedMemory heap with ID = 0 and opens up several MessageQ's created by another core. I call a function Foo( ) from MyTask( ) and pass the MessageQ ID for a MessageQ that I would like to send messages over. When I call MessageQ_alloc(0, sizeof(myMsg)) in Foo( ), the alloc fails.
Is it necessary to allocate a MessageQ message in MyTask( ) and pass a message pointer to Foo( )? Or am I just calling MessageQ_alloc( ) incorrectly from Foo( )?
Once I can alloc a message, will using a passed MessageQ ID in MessageQ_put( ) cause the message to be placed on the appropriate queue?
Nick