cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE v1.19 to v2.0 BLE (STM32_WPAN) Project Migration Issues

WP
Associate III

I have a working project in STM32CubeIDE v1.19 for my STM32WB55RG board.  Pretty simple as it reads some sensor data, does an FFT and sends a couple results over Bluetooth.  It is working well and I'm happy with the performance.  I am on macos Tahoe and the highlighting of text in the editor is not working so I thought I'd upgrade to v2.0 to try to fix that problem.....what could possibly go wrong right?

STM32CubeIDE v2.0 and standalone STM32CubeMX v6.16.1 install fine and I import the project into a new workspace and if I compile immediately after importing, it compiles fine....no errors.  I open the existing .ioc file in CubeMX and everything seems to load fine.  I make no changes and hit "Generate Code" just to make sure the new workflow is working properly.  No changes made but it apparently overwrites the existing app_ble.c file as a compile after refreshing the work done by CubeMX yields the following errors (snippets of output shown for brevity):

 

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

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

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

arm-none-eabi-gcc "../Middlewares/ST/STM32_WPAN/ble/svc/Src/svc_ctl.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DARM_FAST_ALLOW_TABLES -DARM_ALL_FAST_TABLES -DARM_ALL_FFT_TABLES -DARM_FFT_ALLOW_TABLES -DARM_MATH_CM4 -DARM_MATH_LOOPUNROLL -DUSE_HAL_DRIVER -DSTM32WB55xx -c -I../Core/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../Drivers/CMSIS/Include -I../STM32_WPAN/App -I../Utilities/lpm/tiny_lpm -I../Middlewares/ST/STM32_WPAN -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci -I../Middlewares/ST/STM32_WPAN/utilities -I../Middlewares/ST/STM32_WPAN/ble/core -I../Middlewares/ST/STM32_WPAN/ble/core/auto -I../Middlewares/ST/STM32_WPAN/ble/core/template -I../Middlewares/ST/STM32_WPAN/ble/svc/Inc -I../Middlewares/ST/STM32_WPAN/ble/svc/Src -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/ble -O3 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/ST/STM32_WPAN/ble/svc/Src/svc_ctl.d" -MT"Middlewares/ST/STM32_WPAN/ble/svc/Src/svc_ctl.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_WPAN/ble/svc/Src/svc_ctl.o"

arm-none-eabi-gcc "../Middlewares/ST/STM32_WPAN/ble/core/template/osal.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DARM_FAST_ALLOW_TABLES -DARM_ALL_FAST_TABLES -DARM_ALL_FFT_TABLES -DARM_FFT_ALLOW_TABLES -DARM_MATH_CM4 -DARM_MATH_LOOPUNROLL -DUSE_HAL_DRIVER -DSTM32WB55xx -c -I../Core/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc -I../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../Drivers/CMSIS/Include -I../STM32_WPAN/App -I../Utilities/lpm/tiny_lpm -I../Middlewares/ST/STM32_WPAN -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl -I../Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci -I../Middlewares/ST/STM32_WPAN/utilities -I../Middlewares/ST/STM32_WPAN/ble/core -I../Middlewares/ST/STM32_WPAN/ble/core/auto -I../Middlewares/ST/STM32_WPAN/ble/core/template -I../Middlewares/ST/STM32_WPAN/ble/svc/Inc -I../Middlewares/ST/STM32_WPAN/ble/svc/Src -I../Utilities/sequencer -I../Middlewares/ST/STM32_WPAN/ble -O3 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Middlewares/ST/STM32_WPAN/ble/core/template/osal.d" -MT"Middlewares/ST/STM32_WPAN/ble/core/template/osal.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/ST/STM32_WPAN/ble/core/template/osal.o"

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

../STM32_WPAN/App/app_ble.c:675:65: error: request for member 'Warning_Type' in something not a structure or union

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

../STM32_WPAN/App/app_ble.c:757:35: error: 'CONFIG_DATA_PUBLIC_ADDRESS_OFFSET' undeclared (first use in this function); did you mean 'CONFIG_DATA_RANDOM_ADDRESS_OFFSET'?

../STM32_WPAN/App/app_ble.c:757:70: error: 'CONFIG_DATA_PUBLIC_ADDRESS_LEN' undeclared (first use in this function); did you mean 'CONFIG_DATA_RANDOM_ADDRESS_LEN'?

 

Now the easy fix is uninstall v2.0 and go back to v1.19 but at some point I need to move on so am hoping you can help me understand why the project will no longer compile?

I'm at a loss to troubleshoot at this point so any pointers would be helpful.

 

Thank You

 

2 REPLIES 2
Andrew Neil
Super User

Note that you can have multiple versions of CubeIDE installed and in use at the same time on the same computer - you just need a separate workspace for each.

 

Have you tried recreating the app from scratch in v2.0.0 ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I have not tried re-creating the project from scratch in v2.0.  Maybe I'm being lazy, but starting over just to recreate something I have would force me back to v1.19 first.  I will try to parallel version installation as I honestly didn't know that was an option.

 

For reference, I have tried to compile with v1.14 firmware and v1.19 firmware specified in STM32CubeMX Project Manager but no improvements.  I will continue to chip away and report anything relevant.