2023-03-02 09:09 PM
2023-03-02 09:18 PM
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
2023-03-14 11:32 AM
Hello,
Did you restart the advertising when the disconnection occurs? See HCI_DISCONNECTION_COMPLETE_EVT_CODE event in app_ble.c file.
Best Regards
2023-03-14 03:31 PM
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