Bug for BLE Init in new wb5 firmware 1.15
I've used BLE for a month now on the wb5mmg with the 1.14.1 firmware with the steval-proteus board. The setup in the .ioc for new projects was always the same:
- HSEM, IPCC, RCC, RTC, RF, (USART)
- Activating BLE
- Using Default P2P Settings or Custom Template
Then I used the ST BLE Toolbox App to look at the services. It was never any trouble and worked already without much user config
Earlier this week I updated the Cube IDE to 1.11 and with it updated the firmware for the wb5 to 1.15.0.
After the update new projects created on the 1.15 firmware would not advertise.
APP_BLE_Init(void) (app_ble.c) was never called because the function where it was called in was registered as a Task but never set.
Function calls were as follows:
- app_entry.c: appe_Tl_Init(void) was called

- In this function shci_user_evt_proc is registered as task for the sequencer
- Also APPE_SysUserEvtRx is passed as a function pointer
- This function is important because: APPE_SysUserEvtRx (app_entry.c) -> APPE_SysEvtReadyProcessing (app_entry.c) -> APP_BLE_Init (app_ble.c)
- In shci_user_evt_proc the passed function pointer of APPE_SysUserEvtRx is called
- shci_user_evt_proc is registered but never set and therefore never called. In stm32_seq.c: UTIL_SEQ_RegTask() was called UTIL_SEQ_SetTask() was never called
It is important to notice that projects created with firmare 1.14.1 and migrated to 1.15.0 did not have this issue and worked like before.
Just projects created on the 1.15.0 firmware showed this issue. I created mutliple (8) projects and tried different BLE configurations, all with the same issue.
It would have helped a lot if the new IDE version 1.11 would have been still able to change the firmware version of both new projects in the creation dialog and existing projects in the .ioc file in Project Manager.
In the end I deinstalled the IDE and downloaded the 1.10 to work with firmware 1.14.1. Now everything is working again.
