2020-09-28 08:42 AM
Hello
the code generated by STM32CubeIDE version 1.4 with FW package STM32WB 1.8 for BLE application "Router profile" and "Router mode enabled" does not work: It cannot be scanned and connected by smartphone application.
The reason (to my opinion after some investigation) is that the default clock configuration when creating new project does not work. I changed it as in distributed sample code to:
With these changes, the device can be connected.
In addition, there are many differences of distributed sample code "BLE_p2pRouteur" (french word ;) which also does not contain the sub directory with binary reference as other sample projects.
STMicroelectronics should change the code generator, so that the code work "just in time".
Also there should be no difference (e.g.: detected by meld, diff or other tools) between generated and distributed code.
Best regards
Paul
2020-10-09 06:56 AM
STM32WB FW package does not contain .ioc files defined by CubeMX. So when you go through CubeMX to configure your system, you have to define the clock tree you want as you can select other clock sources than those proposed by default. The defaut clock configuration may not be the correct one for all projects. The generated .ioc file keeps the complete configuration of your system. Then you generate the code and debug it with CubeIDE.