Part Number: 66AK2H12
Tool/software: TI-RTOS
XDCtools 3.32, SYS/BIOS 6.46, CCS 7.4, PDK 4.0.7, NDK 2.25
I am trying to setup a pair of mailboxes that use implicate events so that I can have one task pending to service both mailboxes. My problem is that no event is getting posted when I post mail. To simplify the problem, I currently have one mailbox set to implicate post the event.
In my construction I have:
Error_init(&eb);
Event_Params_init(&evntParams);
daqMailEvnt = Event_create(&evntParams, &eb);
mbParam_ptr = &mbxParams;
Mailbox_Params_init(mbParam_ptr);
bufSize = MAILBOX_RSP_NUM_MSGS*(sizeof(Mailbox_MbxElem)+MAILBOX_RSP_MSG_LENGTH);
mbParam_ptr->buf = Memory_alloc(heap, bufSize, 0, &eb);
mbParam_ptr->bufSize = bufSize;
mbParam_ptr->readerEvent = daqMailEvnt;
mbParam_ptr->readerEventId = RSP_MAIL_EVNT;
rspMbx = Mailbox_create(MAILBOX_RSP_MSG_LENGTH, MAILBOX_RSP_NUM_MSGS, mbParam_ptr, &eb);
and my posting code is:
bool status = Mailbox_post(rspMbx, (Ptr) &rspMsgBuffer, BIOS_WAIT_FOREVER);
Under CCS all operations complete w/o error (I realize I am missing checks for error conditions).
After I step over the above Mailbox_post(), ROV Classic shows for the event:
The event address is correct. The pending task is correct as are the masks. What isn't correct is the postedEvents which should now show 0x1.
I am using implicit event posts with mailboxes in other parts of my project and they work and gave me no trouble to implement.
Any clues to where I look to hunt down my problem?
Mike
Additional note: ROV shows that the Mailbox_post() has worked; freeSlots has decremented and curNumMsgs has incremented.