Part Number: CC2340R5
Tool/software:
My customer is trying to use BTool to start advertising on CC2340, they followed this thread as a reference but is having trouble make it work, the BTool log is as below:
[15] : <Tx> - 08:18:02.361
-Type : 0x01 (Command)
-OpCode : 0xFC1D (HCIExt_ResetSystemCmd)
-Data Length : 0x01 (1) byte(s)
Type : 0x00 (0) (Chip Reset)
Dump(Tx):
0000:01 1D FC 01 00 .....
--------------------------------------------------------------------
[16] : <Rx> - 08:18:02.389
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x05 (5) bytes(s)
Event : 0x041D (1053) (HCIExt_ResetSystemCmdDone)
Status : 0x00 (0) (SUCCESS)
CmdOpCode : 0xFC1D (HCIExt_ResetSystemCmd)
Dump(Rx):
0000:04 FF 05 1D 04 00 1D FC ........
--------------------------------------------------------------------
[17] : <Tx> - 08:18:56.811
-Type : 0x01 (Command)
-OpCode : 0xFE00 (GAP_DeviceInit)
-Data Length : 0x08 (8) byte(s)
ProfileRole : 0x04 (4) (
Peripheral)
AddrMode : 0x00 (0) (ADDRMODE_PUBLIC)
RandomAddr : 00:00:00:00:00:00
Dump(Tx):
0000:01 00 FE 08 04 00 00 00 00 00 00 00 ............
--------------------------------------------------------------------
[18] : <Rx> - 08:18:56.849
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (SUCCESS)
OpCode : 0xFE00 (GAP_DeviceInit)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 00 FE 00 .........
--------------------------------------------------------------------
[19] : <Rx> - 08:18:56.864
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x2C (44) bytes(s)
Event : 0x0600 (1536) (GAP_DeviceInitDone)
Status : 0x00 (0) (SUCCESS)
DevAddr : 10:CA:BF:79:DC:69
DataPktLen : 0x00FF (255)
NumDataPkts : 0x05 (5)
IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
CSRK : DC:1B:E1:F6:40:B2:58:D3:C3:A9:EA:C0:B6:05:30:F3
Dump(Rx):
0000:04 FF 2C 00 06 00 69 DC 79 BF CA 10 FF 00 05 00 ..,...i.y.......
0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DC ................
0020:1B E1 F6 40 B2 58 D3 C3 A9 EA C0 B6 05 30 F3 ...@.X.......0.
--------------------------------------------------------------------
[20] : <Tx> - 08:20:46.476
-Type : 0x01 (Command)
-OpCode : 0xFE3E (GapAdv_create)
-Data Length : 0x15 (21) byte(s)
Properties : 0x0000 (0) (
AdvEventProps Bit Mask Is Not Set)
IntervalMin : 0x0000A0 (160)
IntervalMax : 0x0000A0 (160)
PrimaryChMap : 0x07 (7) (
GAP_ADV_CHAN_37
GAP_ADV_CHAN_38
GAP_ADV_CHAN_39)
PeerAddrType : 0x00 (0) (PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID)
PeerAddress : 00:00:00:00:00:00
FilterPolicy : 0x00 (0) (
AdvFilterPolicy Bit Mask Is Not Set)
TxPower : 0x7F (127)
PrimaryPHY : 0x01 (1) (GAP_ADV_PRIM_PHY_1_MBPS)
SecondaryPHY : 0x01 (1) (GAP_ADV_SEC_PHY_1_MBPS)
SID : 0x00 (0)
Dump(Tx):
0000:01 3E FE 15 00 00 A0 00 00 A0 00 00 07 00 00 00 .>..............
0010:00 00 00 00 00 7F 01 01 00 .........
--------------------------------------------------------------------
[21] : <Rx> - 08:20:46.506
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x07 (7) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x02 (2) (INVALIDPARAMETER)
OpCode : 0xFE3E (GapAdv_create)
DataLength : 0x01 (1)
Handle : 0x00 (0)
Dump(Rx):
0000:04 FF 07 7F 06 02 3E FE 01 00 ......>...
--------------------------------------------------------------------
[22] : <Tx> - 08:22:16.220
-Type : 0x01 (Command)
-OpCode : 0xFE3F (GapAdv_enable)
-Data Length : 0x04 (4) byte(s)
Handle : 0x00 (0)
EnableOptions : 0x00 (0) (GAP_ADV_ENABLE_OPTIONS_USE_MAX)
DurationMaxEvnt: 0x0000 (0)
Dump(Tx):
0000:01 3F FE 04 00 00 00 00 .?......
--------------------------------------------------------------------
[23] : <Rx> - 08:22:16.245
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x34 (52) (bleGAPNotFound)
OpCode : 0xFE3F (GapAdv_enable)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 34 3F FE 00 .....4?..
--------------------------------------------------------------------
Would you please help review the log and provide guidance to enable advertisement in BTool? thanks!
Best regards,
Shuyang