Skip to main content
YGail.2
Associate III
February 3, 2023
Solved

STM32wb15 is not advertising

I'm starting with the wb15. For this I followed the video series and currently I'm stuck at https://www.youtube.com/watch?v=lFDMBeJpib0&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=15

Even following every step in the cube setting I'm not getting any advertising from the board. I turned on the debug to monitor the logs of the m4 core but nothing appears.

In comparison I took the Heart Beat example project, applied the same steps in the ioc-file and managed to fullfill this tutorial and get log from the debug. For learning purposes however I want to do this from sketch.

It seems that appart from the cube settings to generate the code, the app which launch the BLE needs some commands in the C/C++ files. This however is not mentioned in this tutorial series.

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
February 16, 2023

Hello,

To fit with the RAM size for the GATT database, the following parameters must be modified according to these values:

  • CFG_BLE_ATT_VALUE_ARRAY_SIZE = 1290
  • CFG_BLE_NUM_GATT_ATTRIBUTES = 30
  • CFG_BLE_NUM_GATT_SERVICES = 4

The default values in STM32CubeMX interface are the same for WB15 and WB55, that's why this issue appears. The default value will be updated in the next version of STM32CubeMX tool.

Best Regards

9 replies

Javier1
Principal
February 7, 2023

A lot of people is having issues with outdated radio-core binary.

Does your board work with other already made examples? Did it work at some point in the past?

hit me up in https://www.linkedin.com/in/javiermuñoz/
Associate III
February 13, 2023

Same issue here, following those tutorials are not enough, no advertising. Can someone point some repo or advice for simple 1 gatt service communication working with lastest library on a STM32WB15 nucleo with a phone except the Heart Beat example project ?

Thanks

Javier1
Principal
February 13, 2023
hit me up in https://www.linkedin.com/in/javiermuñoz/
Remy ISSALYS
ST Technical Moderator
February 16, 2023

Hello,

Which version of STM32CubeMX are you using? Can you check the value of the following parameters?

  • CFG_BLE_ATT_VALUE_ARRAY_SIZE = 1290
  • CFG_BLE_NUM_GATT_ATTRIBUTES = 30
  • CFG_BLE_NUM_GATT_SERVICES = 4

You can find some examples running on NUCLEO WB15CC board like BLE_HeartRate or BLE_p2pServer in STM32CubeWB package.

Best Regards

YGail.2
YGail.2Author
Associate III
February 16, 2023

CubeMX generate by default

#define CFG_BLE_ATT_VALUE_ARRAY_SIZE   (1344)

#define CFG_BLE_NUM_GATT_ATTRIBUTES 68

#define CFG_BLE_NUM_GATT_SERVICES  8

My error code is SHCI_MEMORY_CAPACITY_EXCEEDED_ERR_CODE how can I exceed the memory by default? Is this a bug?

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
February 16, 2023

Hello,

To fit with the RAM size for the GATT database, the following parameters must be modified according to these values:

  • CFG_BLE_ATT_VALUE_ARRAY_SIZE = 1290
  • CFG_BLE_NUM_GATT_ATTRIBUTES = 30
  • CFG_BLE_NUM_GATT_SERVICES = 4

The default values in STM32CubeMX interface are the same for WB15 and WB55, that's why this issue appears. The default value will be updated in the next version of STM32CubeMX tool.

Best Regards

YGail.2
YGail.2Author
Associate III
February 16, 2023

Newest, updated everything in case of missing patch.