cancel
Showing results for 
Search instead for 
Did you mean: 

CAP_Init return BLE_STATUS_OUT_OF_MEMORY

Xiaojie
Associate III

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
4 REPLIES 4
Xiaojie
Associate III

STTwo-32
ST Employee

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.

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
ST Employee

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