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

 

3 REPLIES 3
FilipKremen
ST Employee

Hello,

would it be possible to share the project? Which version of FW package and STM32CubeIDE do you use?

Thank you.

Best regards,

Filip Kremen

I'm not exactly sure what is happening, I upgraded to STM32CubeIDE v1.19.0 because when I created a new project, the .ioc file wasn't being created.  Checked the forum and read that upgrading STM32CubeIDE would fix the issue, which it did.  Today, I was going to create a new project so I could upload it here and now I'm back to not being able to create a .ioc file again.

Any insight?

kumaichi_0-1753196983724.png

kumaichi_1-1753197078703.png

Kindest regards

FilipKremen
ST Employee

Hello,

this is known issue, please read this topic for instructions and let me know if you can continue with your project.

STM32CubeIDE STM32Cube project creation issue - STMicroelectronics Community

Best regards,

Filip Kremen