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.

CC2640 test mode

In reply to Fredrik K:

The below is my code, it is no work too. The status return failure,why?

bool status = FAILURE;
 if ( txPower <= HCI_EXT_TX_POWER_5_DBM )
 {

  status = HCI_EXT_ModemTestTxCmd( cwMode, txFreq );
  status = HCI_EXT_SetTxPowerCmd( txPower );
 }
 else
 {
  HCI_EXT_EndModemTestCmd();

 }

 if I put the command into the SimpleBLEPeripheral_init(), it will be work, liks below:

static void SimpleBLEPeripheral_init(void)

{

ICall_registerApp(&selfEntity, &sem);

HCI_EXT_ModemTestTxCmd( 1, 19 );

}

may be i miss something?