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.

CC2564C: etHardware_Error_Event on HFP connection

Part Number: CC2564C
Other Parts Discussed in Thread: CC2564

Hello,

I got the HFPDemo_HFP example and port it into our application, when I'm tring to connect I get: etHardware_Error_Event, I can't figure out the cause of this.

Port Number: 1
HFRE_Open_HandsFree_Server_Port: Function Successful.
HFRE_Register_HandsFree_SDP_Record: Function Successful.

atLinkKeyRequest: 0x807ABF91F56B

GAP_Authentication_Response success.

atIOCapabilityResponse: 0x807ABF91F56B
Capabilities: Display Yes/No, MITM

atIOCapabilityRequest: 0x807ABF91F56B

Auth success.

atUserConfirmationRequest: 0x807ABF91F56B

Auto Accepting: 254879

GAP_Authentication_Response success.
Un-handled Auth. Event.

atLinkKeyCreation: 0x807ABF91F56B
Link Key Stored.

HFRE Open Port Indication, ID: 0x0001, Board: 0x807ABF91F56B.

Number of active connections: 1

HFP HF>BT: INFO: etHardware_Error_Event

Just to mention, A2DP works. I have attached the BT logs from logger, can you please advice what should I try to debug this?HFP_connect.zip

  • Hi,

    What hardware platform are you using to control the CC2564? Looking at the logs, it seems like you are getting a HCI hardware error event with error code 6. This error code generally indicates something went wrong with the UART interface between your host and the CC2564. I advise you look at the UART interface and ensure that there aren't any irregularities there first.

    Also, from which platform SDK did you get the HFPDemo from?

    Regards,

    Michael

  • Hi Michael,

    Sorry, I am using STM32H7, CC256XSTMFreeRTOS V4.2.1.1.

    I'll try and have a look on the UART interface, BLE and A2DP works though, basically I just integrated the OpenHFServer() function without enabling WB speech.

    Regards,

    Calin

  • HI Calin,

    Have you tried running your code on a supported platform, such as a STM32F4 series device? If you run your code on a platform with the HAL provided for you, you can check to see if a porting issue is the root cause of your UART issue.

    Regards,

    Michael

  • Hi Michael,

    I haven't tried that yet, was thinking about it, but trying all ideas I could think of first.

    Still don't understand why BLE and A2DP work fine but not HFP, they are using the same HCI layer.

    Will let you know if I find something new.

    Thanks,

    Calin

  • Hi Calin,

    I assume that you have resolved your issue since I have not heard back from you. If not, feel free to post a response to this thread, or open a new thread regarding this issue.

    Regards,
    Michael

  • Hi Michael,

    Sorry, had a few other things ongoing, I did check all UART interface, tried couple of ideas here and there (mostly on the DMA since this is mainly the difference from M4 MCUs) but not much of a difference, still doesn't connect.

    I am using GCC toolchain and did try enabling optimisation and apparently that woks, not necessarily connecting on the first attempt but afterwards the connection works and is stable, but I don't like that I don't understand the root cause of this.

    You can close the ticket for now an I'll get back should I find more in the future.

    Thank you,

    Calin