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: CC2564C H5 PROTOCOL STACK

Part Number: CC2564C
Other Parts Discussed in Thread: CC2564

WE PROVIDED OUR BOARD WITH THE CC2564C MODULE, REALIZING A 3 WIRE UART INTERFACE WITH ONLY RXD AND TXD SERIAL LINE FROM THE PROCESSOR (ST32F437ZI AND FreeRTOS) TO CC2564 (AND COMMON GROUND).

WE ALSO HAVE PULLED DOWN WITH A 100K RESISTOR PIN A29 (HCI-CTS)

WE WANT TO USE THE TI SUGGESTED STACK FOR ST MICROPROCESSOR FAMILY BUT IT SEEMS REALIZED  JUST TO SUPPORT A 4-WIRE UART INTERFACE (HW SOLUTION) THAT IS A H4 PROTOCOL, INDEED WE NEED THE STACK SHOULD BE ABLE TO MANAGE AN H3 PROTOCOL, 

SO, HOW WE CAN SET THE STACK TO H5 PROTOCOL FOR OUR HARDWARE WITH A  3-WIRE SOLUTION?

MUST WE ABSOLUTELY INCLUDE BOTH RTS /CTS LINES? WE HOPE WE DON'T HAVE TO CHANGE OUR HARDWARE DESIGN

BEST REGARDS

FABIO ORSINI

  • Hi Fabio,

    It is possible to use 3-wire UART (H5 Protocol) with the CC2564C. Please refer to this previous post: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/611099/cc2564-3-wire-uart-h5-with-stm32discovery-and-cc2564modaem

    The main changes will be to pass through cp3wire to HCI_DRIVER_SET_COMM_INFORMATION and to use the defined USE_SOFTWARE_CTS_RTS in your application. 

    Best,

    -Ryan

  • Hi, Ryan.

    Your suggestion has been successfull for us. Now we communicate with CC2564C at a speed of 115200,  with H5 protocol, so it seems we haven't to change (or not yet)  hardware Uart interface schematics and PCB!

    But, now we have a different problem:

    we execute the OPEN STACK procedure that calls the BSC_Initialize, then HCI_VS_InitializeafterHCIReset calls the Downloadpatch procedure but this one returns error 4 after about 2Kbyte sent data.

    The patch is about 6K, so the OPEN STACK fails.

    IF we disable the downloadpatch step, the OPEN STACK  returns OK.

    Analyzing the RX and TX buffers we can get H5 protocol frames with commands inTX and events on RX 

     See the following logs if they can help you to understand our troubleshoutings:

    that is: 

      UartContext.TxBuffer                           UartContext.RxBuffer

     

    1T-  C0 00 2F 00 D0 01 7E C0 ---SYNC MESSAGE------>

                              <----SYNC RESPONSE-------    1R- C0 00 2F 00 D0 02 7D C0

                              <----SYNC MESSAGE--------     2R- C0 00 2F 00 D0 01 7E C0

    2T- C0 00 3F 00 DB DC 03 FC 14 C0 ------CONFIG MESSAGE------>                  

    3T-  C0 00 2F 00 D0 01 7E C0 -----SYNC MESSAGE------>

                              <----SYNC RESPONSE---------    3R- C0 00 2F 00 D0 02 7D C0

                              <----SYNC MESSAGE----------     4R- C0 00 2F 00 D0 01 7E C0

    4T-  C0 00 2F 00 D0 02 7D C0 ----SYNC RESPONSE----->

    5T-  C0 00 2F 00 D0 01 7E C0 ---SYNC MESSAGE------->

                              <----SYNC RESPONSE--------    5R- C0 00 2F 00 D0 02 7D C0

                               <----CFG MSG RESPONSE---    6R- C0 00 3F 00 DB DC 04 7B 12 C0

                               <-------CONFIG MESSAGE--    7R- C0 00 3F 00 DB DC 03 FC 12 C0

    6T-  C0 00 2F 00 D0 02 7D C0 ---SYNC RESPONSE-------->

    7T- C0 00 3F 00 DB DC 03 FC 14 C0 ---CONFIG MESSAGE--->                  

                               <----CONFIG MESSAGE-------   8R- C0 00 3F 00 DB DC 03 FC 12 C0

                               <----CONFIG MESSAGE-------   9R- C0 00 3F 00 DB DC 03 FC 12 C0

                               <----CONFIG MESSAGE----      10R- C0 00 3F 00 DB DC 03 FC 12 C0

                               <----CONFIG MESSAGE----      11R- C0 00 3F 00 DB DC 03 FC 12 C0

                               <----CONFIG MESSAGE----      12R- C0 00 3F 00 DB DC 03 FC 12 C0

                               <----CONFIG MESSAGE----      13R- C0 00 3F 00 DB DC 03 FC 12 C0

    Best Regards

    Fabio

  • Hi Fabio,

    Just to make sure, you are using this version of the BT Stack, correct? : https://www.ti.com/tool/CC2564CSTBTBLESW 

    Thanks,

    -Ryan

  • Thanks Ryan, yes I verified that the downloaded stack is that you suggest.

    Any case, I have some upgrade for you! Now we are able to complete the intialization procedure, with the patch download successfully! We also make device visible and paired with a cellular phone!

    But I also tell you that we have  to ask you for some more detailed questions in the next few days 

    regards

    fabio

  • Hi Fabio,

    Glad to hear you have found some success. In the mean time, I will close this thread. Feel free to click the "ask a related question" button at the top of the screen with any follow up here.

    Best,

    -Ryan