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: When Gapscan_enable called , it gets stuck in icallabort()

Part Number: CC2340R5

Tool/software:

Hi everyone,

I am using basic_ble example code for cc2340r5. In this example I have created a new file for central working. In this file file i have configured 1 button for scanning and other two for perform GATT_write and GATT_read function. I have to implement this feature without making any change in app_central file already provided in example code.

In central.c file i have configured one button for scanning in which i have called  BLEAppUtil_scanStart(&centralScanStartParams) fucntion which will call the GapScan_enable(scanStartInfo->scanPeriod, scanStartInfo->scanDuration, scanStartInfo->maxNumReport); fucntion. When this fucntgion is called it calls uint32_t icall_directAPI( uint8_t service , icall_lite_id_t id, ... ) but when this executes it get stuck in an infinite while loop by calling  ICall_abort(). ICALL is noit able to call ble_Stack API.

I am thinking it get stuck because icall() is not able to call/find the GAP_scanenable api at BLE_STACK.

I have attached the code images please refer and let me know.

Basically, I wanted to create an independent file which does not depend on another file given in ble_basic (ie app_central ) file . Kindly help me to create. I need to implement basic feature like one button for scanning and connecting , 2nd button for GATT_write operation.

CSS version - 12.5

sdk version -  simplelink_lowpower_f3_sdk_7_40_00_64

    

 





 

Thanks & Regards,
Sandeep Sonawane