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: BT Test Mode / DTM test mode with STM32

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

Tool/software:

I'm working on project which using CC2564 + STM32F4 device, I need to adding RF test mode or BLE DTM test mode. 

following the CC256x Testing Guide, Service pack must have been loaded before the test start, How can I loading the SP data in module ?

and what I should do in STM32 firmware for the BT module test mode?

I'm newer on CC254, please advice any reference and example,

Thanks.

  • Hi Wing,

    The service pack is loaded in as an array in C when using the bluetopia sdk for stm devices.

    The array can be found in this default path 

    C:\ti\Connectivity\CC256X BT\CC256x STM32 Bluetopia SDK\v5.1.1.1\FreeRTOS\Bluetopia\btpsvend\CC256XC.h

    You can also load the service pack bts file using hci tester by connecting to the cc2564 uart lines directly.

    Best,

    Rogelio

  • Thanks for your reply. but there are some question. 

    1. I have replaced the .h file in my project, did I need to call any function to loading the file ? 

    2. do I need to do both loading file from mcu and loading script by HCI PC tools ? and how to confirm the service pack was loaded. 

    3. does the loading action need to do 1 time only ?

    4. since there is STM32 connected with CC2564 , do you have any reference example / demo for using HCI test tools?

  • Hi,

    1. I have replaced the .h file in my project, did I need to call any function to loading the file ? 

    In our demos the initialization function will load the service pack.

    2. do I need to do both loading file from mcu and loading script by HCI PC tools ? and how to confirm the service pack was loaded. 

    No, you only need to load it once. As long as you dont remove power from CC2564C. There is a hci command HCI_VS_Get_System_Status (0xFE1F) will tell you the version of service pack you have loaded.

    https://www.ti.com/lit/an/swra751/swra751.pdf 

    3. does the loading action need to do 1 time only ?

    Yes

    4. since there is STM32 connected with CC2564 , do you have any reference example / demo for using HCI test tools?

    Here is the hcitester guide

    https://www.ti.com/lit/ml/swru136b/swru136b.pdf

    https://www.ti.com/tool/WILINK-BT_WIFI-WIRELESS_TOOLS 

    Best,

    Rogelio

  • HI, 

    Thanks. 

    but there are some question in the RF testing.

    in CC256x_Testing_Guide.pdf,

    1.FCC mode Rx testing, what is the result I can get by FCC Continuous Rx testing?

    2. In Production Line Test: can the device setup LE Tx transmitter Test signal setup like FCC CW(Continue Wave) ?

  • Hi,

    1.FCC mode Rx testing, what is the result I can get by FCC Continuous Rx testing?

    I dont understand what you mean? The continuous RX command will receive packets at the specified frequency

    2. In Production Line Test: can the device setup LE Tx transmitter Test signal setup like FCC CW(Continue Wave) 

    For BLE Testing

    You will need to use the Transmitter Test and Receiver test hci commands as specified on the BT sig core specification and section 7 of the testing guide.

    https://www.bluetooth.com/specifications/specs/core-specification-5-1/   (Vol 6, part F)

    Best,

    Rogelio

  • HI, 

    I didn't found the command 0xFE1F in HCI tester  Commands List , how can I write a custom command ?

    and I found the command  HCI_VS_Read_Patch_Version (0xFF22) will always said the reply error in package size. there is a log file.

    In fact, the module was reply mcu around 36 bytes data. 

    <HTML>
    <HEAD>
    <TITLE>HCITester Log</TITLE>
    </HEAD>
    <BODY>
    <FONT face="Courier New">
    <TABLE ALIGN=LEFT CELLSPACING=0 width=3500 CELLPADDING=0>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:24.898 *** Script Started: ***</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:24.899 --</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:24.899 Packet "HCI_VS_Read_Patch_Version", Opcode 0xff22</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:24.899 --</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">06:06:24.899 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">06:06:24.899     0000: 01 22 ff 00                                     ."..</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:24.899 --</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:24.899 *** Script End ***</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:24.899 --</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:52.100 *** Script Started: ***</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:52.100 --</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:52.100 Packet "HCI_VS_Read_Patch_Version", Opcode 0xff22</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">06:06:52.100 --</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">06:06:52.100 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">06:06:52.100     0000: 01 22 ff 00                                     ."..</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:52.100 --</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:52.100 *** Script End ***</font></td></tr>
    <tr bgcolor="ffffff"><td><font color="000000">06:06:52.100 --</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">06:06:52.113 Incoming Dump:</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">06:06:52.113     0000: 04                                              .</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">06:06:52.113 Incoming Dump:</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">06:06:52.113     0000: 0e 0e 01 22 ff 00 00 00 00 00 98 2a 00 00 00 1a ...".......*....</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 --</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 Packet "HCI_Command_Complete_VS_Read_Patch_Version_Event", Opcode 0xff22</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 Parameters:</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | Number HCI commands : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | Command Opcode      : 0xff22</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | Status              : 0x00 (Success)</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | Enabled Mask        : 0x00000000</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | ReleaseMajor        : -104</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | ReleaseMinor        : 42</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | PackageID           : 0</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 | Build Number        : 0</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">06:06:52.113 --</font></td></tr>
    <tr bgcolor="ffc0a0"><td><font color="000000">06:06:52.113 ERROR - Packet Size. Got: 17 (0x11), Expected: 15 (0x0f)</font></td></tr>
    </TABLE>
    </FONT>
    </BODY>
    </HTML>
    

  • Hi,

    1 More question , since  we are planning to adding the test mode in application, I get 

    BTPS_ERROR_HCI_INITIALIZATION_ERROR from  BSC_Initialize(HCI_DriverInformation, 0). when my device wake up from sleep. 
    it look like the device bluetooth stack cannot been initialize. 
    but it work fine when 1st power up. 
     
  • Hi,

    I was able to find the FE1F on HCITester

    Are you using the correct xml file for hci tester. It can be found in the following package

    https://www.ti.com/tool/CC256XC-BT-SP

    In regards to the initialization errors. The device should only Initialize once on boot up? Can you explain what you mean by device wake up from sleep? The CC2564C has a sleep mechanism through the HCILL protocol however, the protocol does not reinitialize every time.

    Best,

    Rogelio