WB5x: HCI bugs over UART transport
Hi All,
There seems to be multiple bugs in the HCI implementation for WB series chips.
Are there any newer builds of this image where these are fixed?
Setup:
- Using reference dongle from P-NUCLEO-WB55.
- stm32wb5x_FUS_fw.bin latest version - 1.1.2
- stm32wb5x_BLE_HCILayer_fw.bin - v1.10.0
- All bugs can be reproduced in STM32MONRF tool.
The following bugs are present:
1) When sending the HCI_HOST_BUFFER_SIZE, the stack responds with COMMAND_STATUS. This is incorrect. As the spec states: "When the Host_Buffer_Size command has completed, a Command Complete event shall be generated." (Spec 5.0, page 957).
Treating the COMMAND_STATUS as COMMAND_COMPLETE fixes the problem, however this is no according to spec.
1a) There is actually a secondary bug here in the RF MON tool: The default parameters suggested have "Host_Total_Num_ACL_Data_Packets" set to zero by default, which of course will not be accepted. Should be 1.
2) When sending the HCI_LE_SET_SCAN_ENABLE, the default parameters do not work and the stack responds with error "0x83 - short window". This is because the default scan parameters are wrong. Setting them first with HCI_LE_SET_SCAN_PARAMETERS make the problem go away. The default should however always work of course.
Thanks,
/pedro
