cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB5MM-DK Unable to run the BLE_LLD_Chat example generated by STM32Cubeide

Csu.11
Associate II
/**
 * @brief Check if the Coprocessor Wireless Firmware loaded supports Thread
 *        and display associated informations
 * @param  None
 * @retval None
 */
void CheckWirelessFirmwareInfo(void)
{
  WirelessFwInfo_t  wireless_info_instance;
  WirelessFwInfo_t* p_wireless_info = &wireless_info_instance;
  if (SHCI_GetWirelessFwInfo(p_wireless_info) != SHCI_Success)
  {
    APP_BLE_LLD_Error(ERR_BLE_LLD_CHECK_WIRELESS, 0);
  }
  else
  {
    switch(p_wireless_info->StackType)
    {
    case INFO_STACK_TYPE_BLE_PHY_VALID :
      break;
 
    default :
      APP_BLE_LLD_Error(ERR_BLE_LLD_CHECK_WIRELESS, 0);
      break;
    }
  }
}

After debug, it was found that the CheckWirelessFirmwareInfo() function reported an error, and the StackType read by the SHCI_GetWirelessFwInfo() function was incorrect.

1 REPLY 1
Imen.D
ST Employee

Hello @Csu.1​ ,

Which Cube package version are you using ?

Please make sure to use the latest release of Cube package and CubeIDE tool.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen