cancel
Showing results for 
Search instead for 
Did you mean: 

HCI_COMMAND_COMPLETE_EVENT ON STM32WB55

Dean_Sweeney
Associate

I am using the stm32wb5x_BLE_Stack_full_extended_fw.bin (1.18) on my STM32WB55. I would expect to get the HCI_COMMAND_COMPLETE_EVENT after calling hci_reset(), but I never get the event. I get the other HCI events such as HCI_DISCONNECTION_COMPLETE_EVENT,  HCI_LE_META_EVT_CODE,  HCI_VENDOR_SPECIFIC_DEBUG_EVT_CODE. Should I HCI_COMMAND_COMPLETE_EVENT after calling hci_reset()?

2 REPLIES 2
STTwo-32
ST Employee

Hello @Dean_Sweeney 

Could you please try to test this behavior using the P2P server and the stm32wb5x_BLE_Stack_full_extended_fw.bin file from thelast version of the STM32CubeWB (V1.21.1) on a Nucleo-WB55RG.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi STTwo-32,

Thank you for the quick response. I tested the behavior using the P2P server and the stm32wb5x_BLE_Stack_full_extended_fw.bin file from the last version of the STM32CubeWB (V1.21.1) on a Nucleo-WB55RG.

Same result as before, I placed a breakpoint inside HCI_COMMAND_COMPLETE_EVT_CODE and it never gets called:

SVCCTL_UserEvtFlowStatus_t SVCCTL_App_Notification(void *p_Pckt)
{
...
 switch (p_event_pckt->evt)
 {
  case HCI_COMMAND_COMPLETE_EVT_CODE:
  {
    hci_command_complete_evt_t *p_command_complete_event = 
   (hci_command_complete_evt_t*)p_event_pckt->data;
    break;
  }
  ...
}
}