Skip to main content
Associate III
July 16, 2025
Question

Since updating STM32CubeIde STM32WB fails after making changes

  • July 16, 2025
  • 13 replies
  • 871 views

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

 

13 replies

FilipKremen
ST Employee
July 21, 2025

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

kumaichiAuthor
Associate III
July 22, 2025

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
July 23, 2025

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

FilipKremen
ST Employee
August 12, 2025

Hello,

can you please try to open the .ioc file in standalone STM32CubeMX and regenerate the project with version STM32Cube_FW_WB_V1.23.0? I have tried it this way and it worked on my side.

Thank you.

firmware.png

Best regards,

Filip Kremen

kumaichiAuthor
Associate III
August 12, 2025

Hello,

Using the latest version of STM32CubeMX to regenerate the project renders the .ioc useless in STM32CubeIDE.  When opening the .ioc in STM32CubeIDE, it shows the .ioc tab and that's it, nothing else is rendered.

kumaichi_0-1755000337244.png

Kindest regards.

kumaichiAuthor
Associate III
August 12, 2025

In fact, after installing the latest version of STM32CubeMX, I can't load ANY .ioc files in STM32CubeIDE.  I had upgraded STM32CubeIDE via the STM32CubeIDE update process.  I then manually downloaded v1.19 and installed it.  Same thing, none of my .ioc files open now.

Any insight would be greatly appreciated.

Kindest regards.

FilipKremen
ST Employee
August 12, 2025

Hello,

please try to open the .ioc file in standalone version of STM32CubeMX.

Also, you can try to build the project with older version STM32CubeIDE 1.18.1.

Best regards,

Filip Kremen

 

kumaichiAuthor
Associate III
August 12, 2025

I uninstalled everything ST and then reinstalled STM32CubeIDE v1.19.0.  Creating a new project, the .ioc file loads fine.  None of my existing .ioc files will show anything in the UI.  This is absolute insanity.  What's the solution, recreate ALL of my projects?

FilipKremen
ST Employee
August 12, 2025

Opening .ioc file directly in STM32CubeIDE can be buggy sometimes.

I recommend opening the .ioc file in standalone version STM32CubeMX.

Please try the older version as I mentioned before.

Could you please tell me what system do you use (OS)?

Thank you.

Best regards,

Filip Kremen

 

kumaichiAuthor
Associate III
August 12, 2025

On some projects, when trying to open a .ioc, I get this:

kumaichi_0-1755006838996.png

Why is this so broken :(?

kumaichiAuthor
Associate III
August 12, 2025

I don't see where a specific version of STM32CubeMX was recommended.  Can you please let me know which version you'd like me to try?  Installing the latest version is what has created the situation of not being able to open any of my existing .ioc files.

I'm using Windows 10.

Kindest regards.