Tool/software: Code Composer Studio
Hi all,
We use CC1310 in High Speed Model,and sometimes the CMD_FS command fails, and we do this:
RF_Params_init(&rfParams); rfParams.pErrCb = errorCallback; void errorCallback(RF_Handle h, RF_CmdHandle ch, RF_EventMask e) { PIN_setOutputValue(ledPinHandle, Board_LED3,!PIN_getOutputValue(Board_LED3)); FS_error++; while ((int32_t)ch == RF_ERROR_CMDFS_SYNTH_PROG) { // RF_close(rfHandle); // rfHandle = RF_open(&rfObject, RF_pProp_hsm, (RF_RadioSetup*)RF_pCmdRadioSetup_hsm, &rfParams); RF_postCmd(rfHandle, (RF_Op*)RF_pCmdFs_preDef, RF_PriorityNormal, NULL, 0); if(RF_State ==1) { RF_runCmd(rfHandle, (RF_Op*)&RF_cmdRxHS, RF_PriorityNormal, &callback, RF_EventRxEntryDone); } else if(RF_State == 0) { RF_runCmd(rfHandle, (RF_Op*)&RF_cmdTxHS, RF_PriorityNormal, NULL, 0); } // Handle error // If CMD_FS is executed standalone, re-start CMD_FS in this function if there is time. If not, handle as in previous example // When CMD_FS is chained with RX/TX commands, the RX/TX is executed in parallel with this callback by the radio and will subsequently fail. Error can be handled as in previous example. } }
But that can not make the CMD_FS command work properly;so how to solve this problem?