Other Parts Discussed in Thread: CC2564, CC256XM4BTBLESW, CC2564C
We're using CC2564CSTBTBLESW 4.2.1.0 for a dual-role A2DP project. When trying to send SBC packets to a particular A2DP sink, that rejects them (we're getting BTAUD_ERROR_UNABLE_TO_SEND_STREAM_DATA -2022 error on all calls), the Bluetopia stack keeps allocating large chunks of memory, without freeing it afterwards, leading to a rather quick full heap and crash. I can't analyze much about this since we only have binaries, but I did capture the call stack from Bluetopia that keeps allocating these large chunks (552 bytes each time) without freeing them:
AUD_Send_Encoded_Audio_Data()
AUD_Send_RTP_Encoded_Audio_Data()
GAVD_Data_Write()
L2CA_Enhanced_Data_Write()
_L2CA_Enhanced_Data_Write()
EnhancedFragmentPacket()
FragmentPacket()
L2CAP_DataWrite()
BTPS_AllocateMemory()