工具/软件:
下午好、
CC2340R5
SDK: simplelink_lowpower_f3_SDK_8_10_01_02
当 cc2340r5在 BLE 中连接时,我们在调用 GATT_Indication API 后落入 iCall_abort ()函数中。 这种现象经常发生
我不确定为什么会发生这种情况、以及什么可能导致 API 崩溃? 如何诊断错误?
提前感谢、
此致、
Yohan
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.
工具/软件:
下午好、
CC2340R5
SDK: simplelink_lowpower_f3_SDK_8_10_01_02
当 cc2340r5在 BLE 中连接时,我们在调用 GATT_Indication API 后落入 iCall_abort ()函数中。 这种现象经常发生
我不确定为什么会发生这种情况、以及什么可能导致 API 崩溃? 如何诊断错误?
提前感谢、
此致、
Yohan
您好、David、
我的代码:
void app_ble_Indication_task (void) if (ProjectGatt Profile_Char InDICATEConfig->value == 0) if (!is_FIFO_EMPTY (EVT)){//如果一个事件挂起 用例 BLE_Indic_EVT_TIMER: 用例 BLE_Indic_EVT_STAT: pAttr = GATTServ App_Find 属性(ProjectGattProfile_attrTbl、 Indication.handle = pAttr->handle; memcpy (indic.pValue、indicate_buffer、indication.len); RET = 如果(ret !=成功){ |
谢谢您、
此致
Yohan
您好、Yohan、
请确保使用 BLEAppUtil_invokeFunction()在 BLE 上下文中排队执行任务。 您可以使用此 SLA: https://dev.ti.com/tirex/explore/content/simplelink_academy_for_cc23xx_8_40_00_00/_build_simplelink_academy_for_cc23xx_8_40_00_00/source/ble/cc2340rx_08_basicble_drivers.html 作为参考。
BR、
David。