43438: A lot of unknown HCI command 0xfc2e/0xfc4c during boot

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

Hi,

Test on sdk-6.1. (The same errors on sdk-6.0.1)

I got a lot of HCI errors during boot if ENABLE_BT_PROTOCOL_TRACES is defined.

My testing code is pretty simple as it just calls wiced_bt_stack_init() then start wiced_bt_ble_observe().

I got below error after calling wiced_bt_stack_init() .

The HCI command 0xfc2e/0xfc4c seems to be HCI_CMD_OPCODE_WRITE_RAM/HCI_CMD_OPCODE_LAUNCH_RAM.

The BLE still working but these Errors seems abnormal things....

I have no idea what's going on, maybe someone from cypress can clarify if this is a problem or not.

e.g

00:00:01.751000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc2e  Param Len: 0) Ctrl(0)

00:00:01.759000 Error - Unknown HCI command: 64558 [0xfc2e] Length: 0

00:00:01.765000 --

00:00:01.768000 --

00:00:01.770000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)

00:00:01.780000 Parameters

00:00:01.782000                      Num HCI Cmd Packets : 1 (0x01)

00:00:01.789000                                 Cmd Code : 0xfc2e  ((null))

00:00:01.796000 00

00:00:01.798000 --

00:00:01.849000 --

00:00:01.850000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc4c  Param Len: 70) Ctrl(0)

00:00:01.859000 Parameters

00:00:01.862000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 70

00:00:01.868000 --

00:00:01.877000 --

00:00:01.879000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)

00:00:01.889000 Parameters

00:00:01.891000                      Num HCI Cmd Packets : 1 (0x01)

00:00:01.897000                                 Cmd Code : 0xfc4c  ((null))

00:00:01.904000 00

00:00:01.906000 --

00:00:01.908000 --

00:00:01.910000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc4c  Param Len: 255) Ctrl(0)

00:00:01.919000 Parameters

00:00:01.921000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

00:00:01.928000 --

00:00:01.953000 --

00:00:01.955000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)

00:00:01.965000 Parameters

00:00:01.967000                      Num HCI Cmd Packets : 1 (0x01)

00:00:01.974000                                 Cmd Code : 0xfc4c  ((null))

00:00:01.980000 00

All "Unknown HCI command" lines during boot as below:

00:00:01.759000 Error - Unknown HCI command: 64558 [0xfc2e] Length: 0

00:00:01.862000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 70

00:00:01.921000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

00:00:01.998000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

................ // same messages repeat many times...

00:00:12.576000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

00:00:12.652000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

00:00:12.728000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255

00:00:12.804000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 8

00:00:12.858000 Error - Unknown HCI command: 64590 [0xfc4e] Length: 4

00:00:13.162000 Error - Unknown HCI command: 64551 [0xfc27] Length: 12

0 Likes
1 Solution
Anonymous
Not applicable

Hi Axel,

Don't worry about the messages. The issue is with the protocol_print function. 0xfc4c is the Write_RAM opcode as you rightly guessed.

In the protocol_print function, when an event is received, it checks for the opcode and prints accordingly.

Previously, 0xff was used for Vendor specific commands. So the parser in the print function checks if the group opcode is 0xff instead of 0xfc.

That is why it wrongly prints " Unknown HCI command".

I believe the application will work as expected even if you receive these messages.

View solution in original post

4 Replies