Hello,
I'm currently running some code on the DSP that shuffles data between mailboxes in an ISR. The code uses an MBX_pend() to retrieve a message from a full mailbox. Upon successful completion of that call it then immediately attempts to put a new message into that same mailbox using MBX_pend. A timeout of 0 is used for the MBX_pend() and MBX_post() as they are being called within an ISR. What I am noticing is that the MBX_pend() succeeds, which by my understanding immediately removes a sample from the MBX, therefore, giving it an open spot. However, the following MBX_post() to that MBX always fails. Does anyone have an explanation as to what is going on and what I can do to resolve this?
Thanks,
\Greg