with MQX ,
MSGQ_MESSAGE_NOT_AVAILABLE error is being received with msg_alloc function call,
But its not listed in the standard task error codes for the _msg_alloc or the _mem_alloc_system function calls.
Please enlighten us here
Can anyone please help us here.
I checked the _msg_alloc function implementation (C:\Freescale\Freescale MQX 3.8\mqx\source\message\ms_alloc.c) and it does not set this error anywhere in code.
Can you check if the task error is not set already before calling _msg_alloc? The mentioned error is set only by _msgq_open_system, _msgq_peek, _msgq_poll and _msgq_recieve_xxx functions as described in MQX Reference manual.
Yea, the MSGQ_MESSAGE_NOT_AVAILABLE is set even before the call to msg_alloc.Seems that is set with the mssq_receive() call.
But the question is can msg_alloc return, NULL even without setting a error code?
Retrieving data ...