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.

CC2564: Randomly BTPS_ERROR_HCI_DRIVER_ERROR get

Part Number: CC2564
Other Parts Discussed in Thread: CC256XSTBTBLESW, ,

Hi,

We are using CC2564MODA with STM32F722VE . We are using the CC256XSTBTBLESW_4.0.2.1 SDK For development. We have ported the HCITrans driver to make it compatible for the STM32F7. It is working. We are able to open the stack as well as able to do all the communication. 

In our application our device is connected over BLE and at the same time also it is connected with the HFP device(we are using unassisted HFP) and ble scanning is also running. We have observed that randomly at any point of time BTPS_ERROR_HCI_DRIVER_ERROR started to come. This error comes on every API until we do not do reset of the CC2564MODA . we have tried to find out the route cause but not able to get any clue. 

We are using generic Bluetopia.a library which is placed in the bluetopia sdk ,Does this thing create any issue. How can  we avoid this error in our device . When this error comes ? what is the solution for this error without resetting the CC2564MODA ?

Regards

Rutvik Fadia

  • Khodidas,

    khodidas ghinaiya said:
    We have observed that randomly at any point of time BTPS_ERROR_HCI_DRIVER_ERROR started to come. This error comes on every API until we do not do reset of the CC2564MODA . we have tried to find out the route cause but not able to get any clue. 

    Could you please share the complete CC256x firmware logs as explained in the following user's guide?

    khodidas ghinaiya said:
    We are using generic Bluetopia.a library which is placed in the bluetopia sdk ,Does this thing create any issue. How can  we avoid this error in our device . When this error comes ? what is the solution for this error without resetting the CC2564MODA ?

    There are many reasons this error may occur, including some noise/wrong byte stream on the UART lines. The CC256x firmware logs will help us narrow down the root-cause.

    Best regards,

    Vihang

  • Hi Vihang,

    Thanx For your quick response I have attached the log which you have asked in that at 12:06 time -14(BTPS_ERROR_HCI_DRIVER_ERROR) started to come.

    Please provide suggestion based on that .

    Log File.zip

    Regards

    Rutvik Fadia

  • Hi Rutvik,

    You are using a very old service pack. Can, you try with the latest service pack for CC2564B.. www.ti.com/.../cc256xb-bt-sp
    Also, can you please take the BT firmware logs from the beginning i.e from powerup.

    Thanks
  • Hi Hari,

    We have updated the new Service pack in our existing project. We have observed that during compilation we got the error for this two variable AvprPatchLength , AvprPatch in BTPSVend File. As we are not using Wide band speech and A3DP sink we have commented that case able to do compile the code.

    case BSC_FEATURE_WIDE_BAND_SPEECH:

                           ret_val = DownloadPatch(BluetoothStackID, AvprPatchLength, AvprPatch);

    if(FALSE == ret_val) break;

                           Result = VS_AVPR_Enable(BluetoothStackID, TRUE, FALSE, AVRP_A3DP_SOURCE_ROLE);

                           ret_val = Result ? FALSE : TRUE;

                           break;

                        case BSC_FEATURE_A3DP_SINK:

    ret_val = DownloadPatch(BluetoothStackID, AvprPatchLength, AvprPatch);

                           if(FALSE == ret_val) break;

                           Result = VS_AVPR_Enable(BluetoothStackID, TRUE, FALSE, AVRP_A3DP_SINK_ROLE);

                           ret_val = Result ? FALSE : TRUE;

                           break;

     

    We have started the testing on the new service pack with above changes and observed that now we do not get the -14 error but module not accept the command after some time. Means at the BT Logger side multi room assert: no buffer for  (4), count 0 Error Continously running.At that time If I will give advertisement start command MODA gives the success on API call but it does not start the advertisement. So By updating the new service pack we are facing more critical issue than the previous one as in the previous thing we get -14 error and we can do hardreset of module and recover this thing. In this we dont get any error and also it dont start the advertisement untill we do manually reset. I have attach the log of our testing. 

    CC256xB_Log.zip

     

    Regards

    Rutvik Fadia

  • Hi Hari,

    We are waiting for your reply..

    Regards
    Rutvik Fadia
  • Hi Rutvika,

    I am checking the logs with our FW expert and will get back in a day..

    Thanks
  • Hi Rutvik,

    How did you take the latest patch? Did n't just took the new CC256XB.h file into your builds? And, it is not clear to me, how your builds complained for AVPR patch. Typically , if you do not define the build flag, "__SUPPORT_AVPR__, they would not get compiled.. In your case, you would only need the __SUPPORT_LOW_ENERGY__ flag..

    Thanks
  • Hi Hari,

    Yes I have directly taken CC256XB.h file into my builds and yes I know I only required to define the __SUPPORT_LOW_ENERGY__ Flag. That issue I have solved. But the main issue is still there which I have given in the previous post. I am waiting for your reply on that response as this thing create more critical issue then the previous one.

    Regards
    Rutvik Fadia
  • Hi,

    Are, you using it as a BLE peripheral Or central device? From the logs, it seems like it is being used as a peripheral with Advertisement parameters. Can, you please try increasing the advertisement interval min value to a sec or so and different value for max value.

    Thanks
  • Hi Hari,

    Our Requirement is BLE Peripheral + BLE Central + HFP. So at the same time BLE Connection is there as peripheral. We are doing the scanning and advertisement same time. We can not increase the advertisement interval as our application requirement for advertising interval is 100-150ms.

    Does the Advertisement does not start is due to advertisement interval?

    Regards
    Rutvik Fadia
  • Hari,

    We have tried with 1 second advertisement interval just to check and observe that now -14 error not come and also advertisement start every time. But for our application we can not do that much of high advertising interval so can you suggest that what we can do to achieve lower advertising interval.

    And yes we also face another issue with the stack that when we enable the HFP at that time we have observed that we get too many channel map request from the phone side and our ble disconnection happen with the Disconnect reason 0x28. If we disable the HFP then BLE Connection works fine and we get Channel map request very less. Does the HFP create any interference to the BLE ? How we can solve it?As in our case BLE , HFP connection required through out for more than 2 to 3 hrs.

    Regards
    Rutvik Fadia
  • Hi,

    If, you are using CC2564MODA (i.e CC2564B) then LE peripharal + LE Central + HFP (classic) is not possible. You can only use one LE personality, i.e either peripheral Or Central.
    On the other hand, CC2564C supports both LE personalities and HFP at the same time. So, if your requirement is to use all, please move to CC2564C device.
    www.ti.com/.../cc2564c.pdf

    Thanks
  • Hi Hari,

    Sorry For Late Reply... I have one simple question that in CC2564MODA(CC2564B) you say that LE peripheral + LE Central + HFP (Classic) is not possible. It means LE Peripheral connection + LE Central Scanning + HFP (Classic) not possible or LE Peeripheral connection + LE Central Connection + HFP (Classic) not possible, or both of above is not possible?

    I also asked you one thing in previous query that when we enable the HFP at that time we have observed that we get too many channel map request from the phone side and our ble disconnection happen with the Disconnect reason 0x28. If we disable the HFP then BLE Connection works fine and we get Channel map request very less. Does the HFP create any interference to the BLE ? How we can solve it?As in our case BLE , HFP connection required through out for more than 2 to 3 hrs.

    Regards
    Rutvik Fadia
  • Hi Hari ,

    We are waiting for your reply..

    Regards
    Rutvik Fadia
  • You mean, you are using HFP in non assisted mode right? HFP uses SCO connection and has higher priority than other channels. Did, you collect FW logs when using HFP and BLE?

    Thanks