Skip to main content
Lily-Li
Associate
Mar 3, 2023 5:09 AM UTC
Question

STM32wb5MMG customer board BLE stop advertising after first disconnection.

..

This topic has been closed for replies.

3 replies

Lily-Li
Lily-LiAuthor
Associate
Mar 3, 2023 5:18 AM UTC

Hi everyone,

i am using STM32WB5MMG to test ble features.

stm32cubemx version6.7.0 with STM32Cube FW_WB V1.15.0

coprocessor binaries version stm32wb5x_BLE_Stack_full_fw.bin V1.15.0 / 05-Nov-2022

after I setup everything following the video and flash in the fw, the bluetooth toolbox can discover the BLE with 2 services of HRS and DeviceInfo, and I can disconnet the device from toolbox app.

but after that, the device couldn't be discovered anymore.

Anyone knows what happened? looks like it stopped advertising but have no idea why

Remy ISSALYS
ST Technical Moderator
Mar 14, 2023 6:32 PM UTC

Hello,

Did you restart the advertising when the disconnection occurs? See HCI_DISCONNECTION_COMPLETE_EVT_CODE event in app_ble.c file.

Best Regards

Lily-Li
Lily-LiAuthor
Associate
Mar 14, 2023 10:31 PM UTC

Hi Remy,

thanks for your reply.

yes it is restarted.

this part is generated by the ioc. it's not part of the user code.

I found out that, if I use the exiting project(which is setup using stm32cubemx version6.6.0 with STM32Cube FW_WB V1.14.1) and migrate to cubemx6.7.0 with FW_WB V1.15.1, then add BLE features in, then the issue will popup.

But when I start a new project directly with STM32Cube6.7.0 and FW_WBV1.15.0, then everything will be fine.

I have no time to compare the code line by line to find out what exactly the difference is, but anyway it works for me and I can go on with my project.

could anyone can explain, please let me know and I am really appreciated.

Thank you very much.

Lily