I set up the EasyLink txPacket to my liking and attempt to transmit the data. Within the EasyLink_transmit routine, “RF_postCmd” executes, “RF_pendCmd” hangs up my program. Documentation says that the “_pend” is waiting for the above command to end, but it appears that it never does. The program ends up at SysCallback when I break.
How can I debug this hangup? I can’t prove it, but it appears that if “result” returned, it would return as “RF_EventCmdError”. The original packet I pass looks like any other I’ve transmitted in other routines.
Thanks in advance,
1) KeypadRadioTask.C : sendKPCmd()
/* Send packet */
if(EasyLink_transmit(&txPacket) != EasyLink_Status_Success) {
System_abort("EasyLink_transmit failed");
}
2) EasyLink.C : EasyLink_transmit()
// Send packet
RF_CmdHandle cmdHdl = RF_postCmd(rfHandle, (RF_Op*)&EasyLink_cmdPropTx,
RF_PriorityNormal, 0, EASYLINK_RF_EVENT_MASK);
// Wait for Command to complete
RF_EventMask result = RF_pendCmd(rfHandle, cmdHdl, (RF_EventLastCmdDone |
RF_EventCmdError));
1) SysCallback.c
/*
* ======== xdc_runtime_SysCallback_defaultAbort ========
* Default implementation of abort callback function
*/
Void xdc_runtime_SysCallback_defaultAbort(CString str)
{
for (;;) {
/* spin forever */
}
}