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.

How to download CC2564B patch [DK-TM4C129X + CC256XQFNEM ]

Other Parts Discussed in Thread: CC256XQFNEM, CC256XB-BT-SP

Hi everyone,

I want to know how to download patch.

Now I have followed the process to download patch.

HW : DK-TM4C129X + CC256XQFNEM
SW : BHET, CCSv6.1

1.Convert the Service pack (CC2564B SP 1.5) from “initscripts-TIInit_6.7.16_bt_spec_4.1.bts” format to “xxx.h” format using the BHET.
processors.wiki.ti.com/.../CC256x_Downloads

2.Modify the CC256XB.h on the basis of the xxx.h
(C:\ti\Connectivity\CC256X BT\CC256x M4 Bluetopia SDK\v1.2 R2\Cortex_M4\Bluetopia\btpsvend)

3.Start CCS and import SPPDEMO
(C:\ti\Connectivity\CC256X BT\CC256x M4 Bluetopia SDK\v1.2 R2\Cortex_M4\Sample\SPPDemo)

4.Add a "#define __SUPPORT_CC256XB_PATCH__" to "BTPSVEND.c"
(C:\ti\Connectivity\CC256X BT\CC256x M4 Bluetopia SDK\v1.2 R2\Cortex_M4\Bluetopia\btpsvend)

5.Build and load the SPPDEMO project

6.Run the project

7.Got following error on terminal window.

OpenStack().
Stack Init Failed: -4.
Unable to open the stack.

Are there other required items?

Best regards,

Mino.M

  • hi , we have assigned your query to BT expert. We will get back to you shorty.
    Saurabh
  • Hi Mino,

    Can you please comment out the first two commands in the initscript and regenerate the xxx.h file to copy in the M4 SDK? So the bts will look like the following.

    #--------------------------------------------------------------------------------
    # Description : Orca L PG 2.0 ROM Initialization Script
    #
    # Compatibility: Orca, 7.0.16 ROM
    #
    # Last Updated: 25-May-2016  15:42:50.20
    #
    # Version     : TI_P7_16.
    #
    #
    #
    #
    # Notes       : Use this script on Orca L PG 2.0, 7.0.16 ROM device only (FW v7.0.16)
    #--------------------------------------------------------------------------------
    
    #################################################################
    ## START of CC256x Add-On
    #################################################################
    
    ## Change UART baudrate
    #Send_HCI_VS_Update_Uart_HCI_Baudrate 0xFF36, 0x0001c200
    #Wait_HCI_Command_Complete_VS_Update_Uart_HCI_Baudrate_Event 5000, 0x01, 0xff36, 0x00
    
    Com_SetParams 115200, 1
    #################################################################
    ## END of CC256x Add-On
    #################################################################
    
    Send_HCI_VS_Start_VS_Lock 0xFE37, 0x07, 0x10
    Wait_HCI_Command_Complete_VS_Start_VS_Lock_Event 5000, 0x00, 0xfe37, 0x00
    
    ...
    ...
    ...
    
    

    Note : Since the HCI_VS_InitializeAfterHCIReset() function of the BTPSVEND.c in the TIVA bluetooth stack automatically takes care of updating the baud rate if needed, this command is best not included in the bts file when using it with TIVA bluetooth stack SDK.

    Hope this helps.

    Best regards,

    Vihang

  • Hi Vihang,

    Thank you for your reply.

    I can't modify bts file.

    Please send me the modified bts file?

    Best regards,

    Mino.M

  • You need to open the bts file in the hcitester tool and save the edited one from the same tool.

    Attached is the C array generated from the modified bts file.

    Best regards,

    VihangM4_v1p5_initscript_noBRate.h

  • Thank you for your answer.

    Vihang said:
    You need to open the bts file in the hcitester tool and save the edited one from the same tool.

    I can't edit bts file when I open the bts file from HCI Tester.

    Vihang said:
    Attached is the C array generated from the modified bts file.

    I use attached file but got the same error.
    --------------------------------
    OpenStack().
    Stack Init Failed: -4.
    Unable to open the stack.
    --------------------------------

    Please teach me about how to open the bts file from HCI tester.

    Best regards,

    Mino.M

  • Mino,

    You can find the HCITester User Guide in the Wireless Tools installation folder (default is C:\Program Files (x86)\Texas Instruments\Wireless Tools\Docs\SWRU136B_HCITester.pdf). The problem you are facing is most likely related to missing/unlinked .xml file in the HCITester. You can find all the details in this user guide and the .xml file in the CC256XB-BT-SP download folder.

    I just tried the content in the attached .h file above with the same HW setup and did not get a stack initialization error.

    BR,
    Vihang
  • Hi Vihang,

    Thank you. I already read this UG(swru136b) and have followed the process to edit bts file.

    1. Load xml file.(C:\ti\Connectivity\CC256X_BT_SP\TIInit_6.7.16.xml)

    2. Open bts file.(C:\ti\Connectivity\CC256X_BT_SP\v1.5\initscripts-TIInit_6.7.16_bt_spec_4.1.bts)

    3. Check the window.

    I didn't edit bts file.

    What’s wrong?

    Regards,

    Mino

  • Hi Mino,

    This is strange behavior. I have not seen an issue like this with hcitester or the cc256xb-bt-sp files. Maybe the files somehow got corrupted. Please verify your HCITester version is up-to-data and the cc256xb-bt-sp files are a fresh download from ti.com page.

    Best regards,
    Vihang
  • Hi Vihang,

    Thank you for explaining in detail.

    I will try it.

    Thanks & regards,

    Mino.M

  • Hi Vihang,

    I solved this problem when used latest version HCI Tester .
    www.ti.com/.../WILINK-BT_WIFI-WIRELESS_TOOLS

    Thanks & regards,

    Mino.M