This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652 SDK3.1 蓝牙连接内存泄漏问题

Other Parts Discussed in Thread: CC2652R

大家好,

我们在使用CC2652R SDK中的蓝牙project zero 工程开发产品是,发现蓝牙每次连接会丢失12字节内存;

SDK版本:simplelink_cc13x2_26x2_sdk_3_10_00_53

project zero工程配置:

  • 配置为onchip ota
  • ble_release.cfg中配置HEAPMGR_CONFIG=0x80,ICall_malloc函数使用rtos_heaposal.h中内存分配函数
  • 链接文件修改为' $SRC_BLE_DIR$\common\cc26xx\iar\cc26xx_app_and_stack_agama_oad_onchip.icf '

我们通过调试发现,蓝牙连接时,连接过程中,应用层收到BLE_ADV_EVT消息,事件为GAP_EVT_ADV_END_AFTER_DISABLE,之后 llSendAdvSetTermEvent申请了8字节内存,不知有没有释放;

由于蓝牙底层打包成库函数,无法跟踪分析,请确认下,8字节内存在底层没有释放,还是传到应用层,应用层没有处理?