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.

CCS/LAUNCHXL-CC26X2R1: Printf log to console:CIO in BLE examples simple_peripheral

Part Number: LAUNCHXL-CC26X2R1

Tool/software: Code Composer Studio

Hello, I import simple_peripheral_CC26X2R1_LAUNCHXL_tirtos_ccs via CCS and connect Android app and work well .

My question , I want to Print something log to consoleCIO but it will cause BLE to DISCONNECT, Is it possible Print to consoleCIO?  any config get it work?

Below is my printf code location, Thank You!


  switch (pMsg->event)
  {
    case SP_CHAR_CHANGE_EVT:
       printf("SP_CHAR_CHANGE_EVT via printf\n");
      SimplePeripheral_processCharValueChangeEvt(*(uint8_t*)(pMsg->pData));
      break;

    case SP_KEY_CHANGE_EVT:
      printf("SP_KEY_CHANGE_EVT via printf\n");
      SimplePeripheral_handleKeys(*(uint8_t*)(pMsg->pData));
      break;

    case SP_ADV_EVT:
       printf("SP_ADV_EVT via printf\n");
       Log_info0("SP_ADV_EVT");
      SimplePeripheral_processAdvEvent((spGapAdvEventData_t*)(pMsg->pData));
      break;

    case SP_PAIR_STATE_EVT:
      printf("SP_PAIR_STATE_EVT via printf\n");
      SimplePeripheral_processPairState((spPairStateData_t*)(pMsg->pData));
      break;

    case SP_PASSCODE_EVT:
      printf("SP_PASSCODE_EVT via printf\n");
      SimplePeripheral_processPasscode((spPasscodeData_t*)(pMsg->pData));
      break;

    case SP_PERIODIC_EVT:
      printf("SP_PERIODIC_EVT via printf\n");
      SimplePeripheral_performPeriodicTask();
      break;

    case SP_READ_RPA_EVT:
      printf("SP_READ_RPA_EVT via printf\n");
      SimplePeripheral_updateRPA();
      break;