2021-10-02 08:11 PM
2021-10-04 02:31 AM
Hi @RCron.1 i am in your same situation, still not bald tough..
(but closer each day)
Some of the example projects have prebuilds for all supported platforms (including cubeIDE) like BLEcablereplacement
(\STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_CableReplacement)
Which example project are you trying to convert?
2021-10-04 01:50 AM
Hello there!
Which example project are you trying to import?
I ran a quick test using the TIM_OCToggle and could get it to import and build without any issue.
I used the same steps as described in chapter 2.5 of AN5361 (the application note is about H7 but the same principles apply).
2021-10-04 02:31 AM
Hi @RCron.1 i am in your same situation, still not bald tough..
(but closer each day)
Some of the example projects have prebuilds for all supported platforms (including cubeIDE) like BLEcablereplacement
(\STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_CableReplacement)
Which example project are you trying to convert?
2021-10-04 09:51 AM
Hello, thanks for the response. I was trying to get the BLE_HeartRate project imported by following the getting started video series (#4 I think). I did finally get it to open by clicking on the .project file, but I had to switch to Windows (I primarily use Mac), and even then it took several tries for it to open as a compilable project. However, now I'm on to the next video using the BLE_p2pServer project. The instruction are to open the BLE_p2pServer.ioc file in CubeMX, but MX gives an error popup saying "Try to load a project generated with a more recent version of MXCube". I have the current version of both the example projects for the STM32Cube_FW_WB_V1.12.0 driver downloaded from ST, and the latest version of CubeMX. The funny part is that I am actually able to open the .ioc project on my Mac (I haven't gotten so far as to get the project working, fingers crossed...). I'd really like to be able to follow this series on one machine, preferably Mac but really either would be fine.
2021-10-04 09:54 AM
Thanks for the tip about the prebuilt examples, that really helps! My reply above better outlines what I've done so far. And I really appreciate the links you posted, I'm sorry other people are struggling with this but it's nice to know I'm not alone!
2021-10-04 10:24 AM
One thing I think would help a lot is knowing how to open .project files on the Mac. CubeIDE on Mac doesn't seem to know what to do with them, double clicking them from finder does nothing and opening them from within the side just opens a text (xml?) file.
2021-10-04 12:23 PM
I managed to get BLE_p2pServer.ioc file to open in CubeMX (Windows) and was able to follow the video to make the indicated adjustments and generate code. I was then able to open the .project file int the STM32CubeIDE folder generated by CubeMX. After open the project in CubeIDE, the contents of the Utilities file were missing and the project wouldn't build. I repeated the process and made a backup copy of the Utilities file before opening the .project file, and was able to replace the (again missing) contents of the Utilities folder. However, it still won't build. Below is the console from that build attempt: (sorry for formatting, I don't know how to make it better)
14:11:20 **** Incremental Build of configuration Debug for project BLE_p2pServer ****
make -j8 all
arm-none-eabi-gcc "../Utilities/sequencer/stm32_seq.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DUSE_STM32WBXX_NUCLEO -DDEBUG -DSTM32WB55xx -c -I../../Core/Inc -I../../STM32_WPAN/App -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -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../../../../../../../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../../../../../../../Utilities/sequencer -I../../../../../../../Middlewares/ST/STM32_WPAN/ble -I../../../../../../../Drivers/CMSIS/Include -I../../../../../../../Drivers/BSP/P-NUCLEO-WB55.Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Utilities/sequencer/stm32_seq.d" -MT"Utilities/sequencer/stm32_seq.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Utilities/sequencer/stm32_seq.o"
arm-none-eabi-gcc "../Utilities/lpm/tiny_lpm/stm32_lpm.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DUSE_STM32WBXX_NUCLEO -DDEBUG -DSTM32WB55xx -c -I../../Core/Inc -I../../STM32_WPAN/App -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc -I../../../../../../../Drivers/STM32WBxx_HAL_Driver/Inc/Legacy -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../../../../../../../Drivers/CMSIS/Device/ST/STM32WBxx/Include -I../../../../../../../Utilities/sequencer -I../../../../../../../Middlewares/ST/STM32_WPAN/ble -I../../../../../../../Drivers/CMSIS/Include -I../../../../../../../Drivers/BSP/P-NUCLEO-WB55.Nucleo -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Utilities/lpm/tiny_lpm/stm32_lpm.d" -MT"Utilities/lpm/tiny_lpm/stm32_lpm.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Utilities/lpm/tiny_lpm/stm32_lpm.o"
make: *** No rule to make target 'C:/Middlewares/ST/STM32_WPAN/ble/core/auto/ble_gap_aci.c', needed by 'Middlewares/STM32_WPAN/ble_gap_aci.o'. Stop.
make: *** Waiting for unfinished jobs....
In file included from ../Utilities/sequencer/stm32_seq.c:23:
../../Core/Inc/utilities_conf.h:30:10: fatal error: cmsis_compiler.h: No such file or directory
30 | #include "cmsis_compiler.h"
| ^~~~~~~~~~~~~~~~~~
In file included from ../Utilities/lpm/tiny_lpm/stm32_lpm.c:22:
../../Core/Inc/utilities_conf.h:30:10: fatal error: cmsis_compiler.h: No such file or directory
30 | #include "cmsis_compiler.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make: *** [Utilities/lpm/tiny_lpm/subdir.mk:19: Utilities/lpm/tiny_lpm/stm32_lpm.o] Error 1
make: *** [Utilities/sequencer/subdir.mk:19: Utilities/sequencer/stm32_seq.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
14:11:21 Build Failed. 6 errors, 0 warnings. (took 397ms)