Skip to main content
JR2963
Senior II
July 23, 2024
Solved

BLE - Can not add more than 3 characteristics to 1 service in STM32WB55

  • July 23, 2024
  • 2 replies
  • 2292 views

Hello,

I am working on a project using the STM32WB55 and its BLE stack. I am trying to implement a custom service with more than three characteristics. However, when I add a fourth characteristic, the function aci_gatt_add_char returns the error code 0x98.

Interestingly, if I add two more services each with two characteristics (i.e., a total of 3+2+2 = 7 characteristics), there are no issues. The problem occurs only when a single service contains more than 3 characteristics.

I followed the Heart Rate Monitor example.

Thank you for any help.

JR2963_0-1721724037367.png

 

Best answer by STTwo-32

Hello @JR2963 

As suggested on this post, i suggest you change the mentioned parameters to be compatible with your Case.

PS: 0x98 = out of memory. 

Just don't forget to use the last version of CubeWB, CubeMX/IDE and to update your node with the last versions of the right FUS and Stack. If this is a personnel design, please try to check on it with an expert and repeat the same test on a Nucleo board before.

Best Regards.

STTwo-32

2 replies

Andrew Neil
Super User
July 23, 2024

@JR2963 wrote:

the function aci_gatt_add_char returns the error code 0x98.


Have you looked-up what that code means?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
JR2963
JR2963Author
Senior II
July 23, 2024

I tried, but I couldn't find out what it means.

STTwo-32
STTwo-32Best answer
Technical Moderator
August 26, 2024

Hello @JR2963 

As suggested on this post, i suggest you change the mentioned parameters to be compatible with your Case.

PS: 0x98 = out of memory. 

Just don't forget to use the last version of CubeWB, CubeMX/IDE and to update your node with the last versions of the right FUS and Stack. If this is a personnel design, please try to check on it with an expert and repeat the same test on a Nucleo board before.

Best Regards.

STTwo-32