cancel
Showing results for 
Search instead for 
Did you mean: 

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

JR2963
Senior II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Andrew Neil
Evangelist III

@JR2963 wrote:

the function aci_gatt_add_char returns the error code 0x98.


Have you looked-up what that code means?

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

STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.