2025-03-24 10:30 AM
Hello,
I'm trying to implement a custom BLE Client on a P-Nucleo-WB55 board. The ST P2p_client example runs fine on the board and I could add some traces and do little modifications in it before trying to start my project from scratch with CubeMX. It seems the VS_HCI_C2_Ready is not received in my project since I never reach a breakpoint in IPCC_C1_RX_IRQHandler. I have checked many times the differences (clocks, code generated, initialisations...) between the P2P example and my project. I don't know what more to check. Since the example runs fine, I guess it's not a stack firmware problem.
If a kind soul could enlighten me...
Thanks.
2025-04-07 1:46 AM
I nearly forgot. Despite the error message box, CubeMX still claims "Project has been successfully generated"...
2025-04-07 4:46 AM
Hello,
two files stm32wbxx_hal_tim.c and stm32wbxx_hal_tim_ex.c weren't included in the project.
To fix it, please add these two files from ST_try_modified_ioc\ST_try\P2P_client\Drivers\STM32WBxx_HAL_Driver\Src folder to the project (link to files).
Also, please try to update the tools to the latest versions.
Best regards,
ST support
2025-04-07 6:19 AM
I have updated my tools to CubeMX 6.14 and CubeIDE 1.18. It's the same.
Thank you for the two files but what I try to point you is that CubeMX fails to generate an usable project (starting from the last project you posted), WHATEVER the modification you make to the ioc, as soon as you add external code. The TIM example was just...an example to send to you. Whichever peripheral you add/remove/modify produce the same effect: a non compilable project.
I'm used to external code/library in my STM32 projects, I'm used to change things in CubeMX in such projects without any problem.
I'm now wondering if it has ever been possible to build a BLE Central project from scratch and using MX...
2025-04-08 12:05 AM
Hello,
I have entered an internal ticket regarding the code generation, and I will let you know once I receive any feedback.
It is possible to create P2P client using CubeMX, however some changes may be necessary to add compared to the original example.
Best regards,
ST support
2025-04-09 1:41 AM
Hello,
please try to open the .ioc file in standalone CubeMX and choose the "Generate under root" option and generate the code. It should fix the issue.
Best regards,
ST support