Other Parts Discussed in Thread: BT-MSPAUDSOURCE-RD, , CC2560
Dear Forum Users,
I have problems communicating with CC2560B using HCI UART. I am using BT-MSPAUDSOURCE-RD as reference design for early development where MSP430 on board transfer bytes between PC and CC2560B. Start-up operations after reset are:
- wait for SLOW_CLK (from 32,768kHz ACLK) to stabilize
- set nSHUTD pin high
- set RTS low
First problem I encountered is that BT controller CTS pin is never going low after start-up. I use HCITester tool to exchange HCI commands and BT contoller does answer but response events are never correct for sent commands. Example output from HCITester is below:
09:59:02.309 Load Succeeded 09:59:02.309 -- 09:59:02.309 VersionPlatform = "ORCA" 09:59:02.309 VersionMajor = 7 09:59:02.309 VersionMinor = 16 09:59:02.309 -- 09:59:25.381 -- 09:59:25.381 Packet "HCI_Read_Local_Version_Information", Opcode 0x1001 09:59:25.381 -- 09:59:25.381 Outgoing Dump: 09:59:25.381 0000: 01 01 10 00 .... 09:59:25.381 Incoming Dump: 09:59:25.381 0000: 04 . 09:59:25.381 Incoming Dump: 09:59:25.381 0000: 88 01 06 ... 09:59:25.381 -- 09:59:25.381 Packet "se", Opcode 0x0088 09:59:25.381 Parameters: 09:59:25.381 | Layer : 0x04 09:59:25.381 | Event Opcode : 0x88 09:59:25.381 | Length : 0x01 09:59:25.381 | Payload : "06" 09:59:25.381 -- 09:59:25.381 Incoming Dump: 09:59:25.381 0000: 00 50 .P 09:59:25.388 Incoming Dump: 09:59:25.388 0000: 90 e3 .. 09:59:36.147 -- 09:59:36.147 Packet "HCI_Read_BD_ADDR", Opcode 0x1009 09:59:36.147 -- 09:59:36.147 Outgoing Dump: 09:59:36.147 0000: 01 09 10 00 .... 09:59:36.156 Incoming Dump: 09:59:36.156 0000: 04 . 09:59:36.156 Incoming Dump: 09:59:36.156 0000: 48 01 cb H.. 09:59:36.156 -- 09:59:36.156 Packet "se", Opcode 0x0048 09:59:36.156 Parameters: 09:59:36.156 | Layer : 0x04 09:59:36.156 | Event Opcode : 0x48 09:59:36.156 | Length : 0x01 09:59:36.156 | Payload : "CB" 09:59:36.156 -- 09:59:36.156 Incoming Dump: 09:59:36.156 0000: 20 09:59:36.156 Incoming Dump: 09:59:36.156 0000: f8
I receive event packet (0x04) but opcode and the following bytes are incorrect. This happens regardless of flow control settings in HCITester. Received events are the same when I send commands from MSP430 code instead of using microcontroller as a proxy.
I also tried to download init script from https://www.ti.com/tool/CC256XB-BT-SP to module but I get error at second line because received event is wrong:
Send_HCI_VS_Update_Uart_HCI_Baudrate 0xFF36, 0x0001c200 Wait_HCI_Command_Complete_VS_Update_Uart_HCI_Baudrate_Event 5000, 0x00, 0xff36, 0x00
Have you ever encountered such behavior? Maybe I am missing something in module initialization?
Thank you for any help in advance.
Adam