2025-07-16 1:48 PM - last edited on 2025-07-21 5:03 AM by Andrew Neil
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
2025-07-21 4:43 AM
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
2025-07-22 8:13 AM
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?
Kindest regards
2025-07-22 11:49 PM
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
2025-08-09 12:31 PM - edited 2025-08-09 12:33 PM
I have attached a new project that I created using the, from an existing .ioc file menu. I tried upgrading to the WB firmware, 1.21.0 but for some reason it always downloads v1.17.3, no idea why it's doing that. I uninstalled v1.17.3 prior to upgrading to v1.21.0.
Current version of STM32CubeIDE is v1.19.0.
I'm very interested to know why it's generating app_ble.c code that seems to be incompatible and prevents the building of the project.
Any insight would be greatly appreciated.
Kindest regards.
2025-08-12 12:51 AM
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.
Best regards,
Filip Kremen
2025-08-12 5:06 AM
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.
Kindest regards.
2025-08-12 6:08 AM
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.
2025-08-12 6:38 AM
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
2025-08-12 6:43 AM
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?