2021-11-25 02:00 AM
/**
* @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.
2021-12-09 07:01 AM
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