cancel
Showing results for 
Search instead for 
Did you mean: 

Since updating STM32CubeIde STM32WB fails after making changes

kumaichi
Associate III

Ever since being forced to update STM32CubeIde, every time a change is made to the .ioc file and the code is regenerated the following errors show up.

app_ble.c

/**

* Write the BD Address

*/

p_bd_addr = BleGetBdAddress();

ret = aci_hal_write_config_data(CONFIG_DATA_PUBLIC_ADDRESS_OFFSET, CONFIG_DATA_PUBLIC_ADDRESS_LEN, (uint8_t*) p_bd_addr);

if (ret != BLE_STATUS_SUCCESS)

{

APP_DBG_MSG(" Fail : aci_hal_write_config_data command - CONFIG_DATA_PUBLIC_ADDRESS_OFFSET, result: 0x%x \n", ret);

}

else

{

APP_DBG_MSG(" Success: aci_hal_write_config_data command - CONFIG_DATA_PUBLIC_ADDRESS_OFFSET\n");

APP_DBG_MSG(" Public Bluetooth Address: %02x:%02x:%02x:%02x:%02x:%02x\n",p_bd_addr[5],p_bd_addr[4],p_bd_addr[3],p_bd_addr[2],p_bd_addr[1],p_bd_addr[0]);

}

 

CONFIG_DATA_PUBLIC_* needs to be changed to CONFIG_DATA_RANDOM_*

 

case ACI_HAL_WARNING_VSEVT_CODE:

{

aci_hal_warning_event_rp0 *p_warning_event;

 

p_warning_event = (aci_hal_warning_event_rp0 *)p_blecore_evt->data;

UNUSED(p_warning_event);

APP_DBG_MSG(">>== ACI_HAL_WARNING_VSEVT_CODE\n");

APP_DBG_MSG("Warning Type = 0x%02X\n", p_warning_event->Warning_Type);

/* USER CODE BEGIN ACI_HAL_WARNING_VSEVT_CODE */

//

/* USER CODE END ACI_HAL_WARNING_VSEVT_CODE */

break;

}

 

Apparently, ACI_HAL_WARNING_VSEVT_CODE is no longer a thing.

../STM32_WPAN/App/app_ble.c: In function 'SVCCTL_App_Notification':

../STM32_WPAN/App/app_ble.c:673:14: error: 'ACI_HAL_WARNING_VSEVT_CODE' undeclared (first use in this function); did you mean 'ACI_HAL_FW_ERROR_VSEVT_CODE'?

673 | case ACI_HAL_WARNING_VSEVT_CODE:

| ^~~~~~~~~~~~~~~~~~~~~~~~~~

| ACI_HAL_FW_ERROR_VSEVT_CODE

../STM32_WPAN/App/app_ble.c:673:14: note: each undeclared identifier is reported only once for each function it appears in

../STM32_WPAN/App/app_ble.c:675:11: error: unknown type name 'aci_hal_warning_event_rp0'; did you mean 'aci_hal_fw_error_event_rp0'?

675 | aci_hal_warning_event_rp0 *p_warning_event;

| ^~~~~~~~~~~~~~~~~~~~~~~~~

| aci_hal_fw_error_event_rp0

../STM32_WPAN/App/app_ble.c:677:34: error: 'aci_hal_warning_event_rp0' undeclared (first use in this function); did you mean 'aci_hal_fw_error_event_rp0'?

677 | p_warning_event = (aci_hal_warning_event_rp0 *)p_blecore_evt->data;

| ^~~~~~~~~~~~~~~~~~~~~~~~~

| aci_hal_fw_error_event_rp0

../STM32_WPAN/App/app_ble.c:677:61: error: expected expression before ')' token

677 | p_warning_event = (aci_hal_warning_event_rp0 *)p_blecore_evt->data;

 

#define CFG_BLE_MAX_ADD_EATT_BEARERS (4)

../STM32_WPAN/App/app_ble.c: In function 'APP_BLE_Init':

../Core/Inc/app_conf.h:360:49: warning: excess elements in struct initializer

360 | #define CFG_BLE_MAX_ADD_EATT_BEARERS (4)

| ^

../STM32_WPAN/App/app_ble.c:302:10: note: in expansion of macro 'CFG_BLE_MAX_ADD_EATT_BEARERS'

302 | CFG_BLE_MAX_ADD_EATT_BEARERS

| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

../Core/Inc/app_conf.h:360:49: note: (near initialization for 'ble_init_cmd_packet.Param')

360 | #define CFG_BLE_MAX_ADD_EATT_BEARERS (4)

| ^

../STM32_WPAN/App/app_ble.c:302:10: note: in expansion of macro 'CFG_BLE_MAX_ADD_EATT_BEARERS'

302 | CFG_BLE_MAX_ADD_EATT_BEARERS

 

What am I doing wrong, do I need to do something, so it generates the code correctly?

 

Kindest regards

 

0 REPLIES 0