Other Parts Discussed in Thread: CC2564, TM4C123GH6PM
Hello Ti support team,
We facing some issue using CC2564 in dual-mode bluetooth with Bluetopia stack. Our application need to regulary send BLE packet without any data or time loss. These packet are send in a 1ms thread where we call the function GATT_Handle_Value_Notification() function. All is working well so far and we correctly get all the data in our android application. The streaming audio is working fine as well when we don't send BLE packet.
The problem occurs when we trying to stream audio through A2DP profile and send BLE packet at the same time. After a moment, we can hear some short audio cut-off and GATT_Handle_Value_Notification() return the error message BTPS_ERROR_INSUFFICIENT_BUFFER_SPACE. After that, we are not able to send any more BLE packets (even if the status callbacck etGATT_Connection_Device_Buffer_Empty is called)
By using the function BTPS_QueryMemoryUsage. I observed the following result :
Memory usage when nothing run (NO BLE and NO A2DP) : Used = 5032 / Free = 10332 / MaxFree = 10332
Memory usage when only BLE : Used = 5032 / Free = 9152/ MaxFree = 9060
Memory usage when A2DP : Used = 13004 / Free = 2360/ MaxFree = 2236
Memory usage when A2DP + BLE: Used = 13152/ Free = 2212 / MaxFree = 2200
We can't allocate more memory because our SRAM allocation is already full...
My question are :
- Is this "normal" that the memory used when running nothing is to 5032 ? Can we optimize something to reduce this value ?
- If not, is this possible to reduce the A2DP memory usage by modify some parameter (from SBC codec or by reduce audio quality) ?
MCU ref : TM4C123GH6PM
It will be so great if you can get me some information about this issue.
Thanks in advance !