This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: RF_runCmd() generating exception during TX

Part Number: CC1310
Other Parts Discussed in Thread: SYSBIOS

Hi Everyone,

  I have a simple app based on the TX/TX examples that sends messages back and forth between 2 Launchpads.

The problem I am seeing is that RF_runCmd() is generating an exception during xmit.  I verified that the packet has

actually been sent since the other side receives it correctly.  I am using the TX setup from RF Studio and then modifying

it to this:

    RF_cmdPropTx.pktLen                   = 0;
    RF_cmdPropTx.pPkt                     = NULL;
    RF_cmdPropTx.startTrigger.triggerType = TRIG_NOW;
    RF_cmdPropTx.startTrigger.pastTrig    = 1;
    RF_cmdPropTx.startTime                = 0;

The starting config is this:

// CMD_PROP_TX
// Proprietary Mode Transmit Command
rfc_CMD_PROP_TX_t RF_cmdPropTx =
{
.commandNo = 0x3801,
.status = 0x0000,
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
.startTime = 0x00000000,
.startTrigger.triggerType = 0x0,
.startTrigger.bEnaCmd = 0x0,
.startTrigger.triggerNo = 0x0,
.startTrigger.pastTrig = 0x0,
.condition.rule = 0x1,
.condition.nSkip = 0x0,
.pktConf.bFsOff = 0x0,
.pktConf.bUseCrc = 0x1,
.pktConf.bVarLen = 0x1,
.pktLen = 0x14,
.syncWord = 0x930B51DE,
.pPkt = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
};

My TX routine is this:

RF_EventMask xmitPacket(uint8_t *txPkt, uint32_t pktLen)
{
   RF_EventMask ret;

   RF_cmdPropTx.pktLen = pktLen;
   RF_cmdPropTx.pPkt = txPkt;

   RF_cmdPropTx.pktConf.bFsOff = 0x1;

   /* Send packet */
   ret = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx,
                   RF_PriorityNormal, NULL, 0);

   printf("return value %d from TX\n", ret);

   return(ret);
}

Without the source code for the RF library it's pretty hard to debug.

The code stops in ti_sysbios_family_arm_m3_Hwi_excHandler_L()

Any ideas?

Thanks in advance,

Victor