How to configure the Bluetooth for STM32WB5MMG using STM32CubeIDE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-08 6:58 AM
I made a breakout board using the STM32WB5MMG with SWD debugging.
I have confirmed that the SWD pins are working.
I have also set up HSEM, IPCC, RCC, RTC, RF, STM32_WPAN required but I can't detect the Bluetooth
The following are clock configuration.
- Labels:
-
BLE
-
STM32CubeMX
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-09 3:19 AM
Hello @SWong.10​ ,
You can refer to the repository : \Repository\STM32Cube_FW_WB_V1.15.0RC2\Projects\STM32WB5MM-DK\Applications\BLE
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-09 3:42 AM
Hi @SWong.10​ , what firmware are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-11 1:30 AM
Hi @Lotta​ ,
I follow the guidelines on :
- https://wiki.segger.com/ST_STM32WB#Acquire_Wireless_Stack_binaries
- /Respository/STM32Cube_FW_WB_V1.15.0/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html
For Firmware (V1.2.0):
stm32wb5x_FUS_fw.bin at address 0x080EC000
For Wireless (V1.15.0):
stm32wb5x_BLE_Stack_full_fw.bin at address 0x080CE000
The following shows the J-Link Commander:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-12-12 12:19 AM
Hi @SWong.10​ ,
I too struggled with the same issue, that is why I asked for your firmware. There seems to be a bug in the new 1.15.0 version of the firmware.
https://community.st.com/s/question/0D53W00001zO6wXSAS/bug-for-ble-init-in-new-wb5-firmware-115
I described how I debuged and what the bug is here. Maybe you can debug as well and see if it is the same problem.
If you have the same issue, the only thing that helped me was roll back to the 1.14.1 firmware. There everthing works perfectly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-04 5:20 AM
Hello,
Which version of STM32CubeMX are you using? Can you share your configuration of CFG_BLE_LS_SOURCE (see app_conf.h file)?
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-31 12:35 PM
Hi,
Sorry for the late response due to personal reason. The problem has been solved.
STM32CubeIDE Version: V11.1.0
For Firmware (V1.2.0):
stm32wb5x_FUS_fw.bin at address 0x080EC000
For Wireless (V1.15.0):
stm32wb5x_BLE_Stack_full_fw.bin at address 0x080CE000
Follow the guidelines on :
- https://wiki.segger.com/ST_STM32WB#Acquire_Wireless_Stack_binaries
- /Respository/STM32Cube_FW_WB_V1.15.0/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html
Remember to make sure that the wireless stack is started.
The problem I faced was the clock configuration for RFWKP Clock Mux. Previously, LSE was selected but the Bluetooth did not work. Thus, using HSE instead of LSE for the RFWKP works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-31 12:39 PM
Hi,
I am using STM32CubeIDE V11.1.0.
Is the following the correct configuration?
#if defined(STM32WB5Mxx)
#define CFG_BLE_LS_SOURCE (SHCI_C2_BLE_INIT_CFG_BLE_LS_NOCALIB | SHCI_C2_BLE_INIT_CFG_BLE_LS_MOD5MM_DEV | SHCI_C2_BLE_INIT_CFG_BLE_LS_CLK_HSE_1024)
#else
#define CFG_BLE_LS_SOURCE (SHCI_C2_BLE_INIT_CFG_BLE_LS_NOCALIB | SHCI_C2_BLE_INIT_CFG_BLE_LS_OTHER_DEV | SHCI_C2_BLE_INIT_CFG_BLE_LS_CLK_HSE_1024)
#endif
Best Regards
