Skip to main content
Associate III
May 11, 2024
Solved

CAP_Init return BLE_STATUS_OUT_OF_MEMORY

Hello

    My Project is based on STM32WBA55G-DK1 to develop my ble headphone.But when i called CAP_Init API, it returned BLE_STATUS_OUT_OF_MEMORY. I don't know which parameter is causing this issue. Following Parameters are my ble config.

 

#define CFG_BLE_NUM_LINK            (1)
#define CFG_BLE_NUM_GATT_SERVICES   (2)
#define CFG_BLE_NUM_GATT_ATTRIBUTES (11)
#define CFG_BLE_ATT_MTU_MAX         (251)
 
Thanks
This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
July 10, 2024

Hello,

You can refer to the following wiki page for more information regarding Bluetooth LE Audio architecture and integration on STM32WBA, on section 3.1 "Configuration of the audio profiles of the Generic Audio Framework".

The error code 0x07 means Memory Capacity Exceeded.

Best Regards

 

4 replies

XiaojieAuthor
Associate III
May 17, 2024

:face_with_tears_of_joy:

STTwo-32
ST Technical Moderator
May 31, 2024

Hello @Xiaojie 

I suggest you take a look at this post. It should be helpful.

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.
XiaojieAuthor
Associate III
May 31, 2024

Hi, 

 

     I change CFG_BLE_NUM_GATT_SERVICES、CFG_BLE_NUM_GATT_ATTRIBUTES、CFG_BLE_ATT_VALUE_ARRAY_SIZE, and the CAP_Init will not return BLE_STATUS_OUT_OF_MEMORY, but return 0x7. What does the error code  7 mean?

 

Thanks

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
July 10, 2024

Hello,

You can refer to the following wiki page for more information regarding Bluetooth LE Audio architecture and integration on STM32WBA, on section 3.1 "Configuration of the audio profiles of the Generic Audio Framework".

The error code 0x07 means Memory Capacity Exceeded.

Best Regards