Part Number: CC2640R2F
Tool/software: TI-RTOS
Hi,
Some background first: My project is based on the official Multi_Role example. I added two custom tasks which are used for UART read and write respectively. I try to control the launchpad through UART. So if I send a "scan start" command through UART, then the added read task will receive the command and call the mr_doScan function provided in multi_role.c to start scanning.
It turns out that the command is correctly received, but the program gets stuck at linkDB_NumActive during performing mr_doScan. Does anybody have any idea about why did this happen and how can it be resolved?
I also tried to make my program send indication to a phone(connected, of cause) through UART, when I called GATT_Indication, and I succeeded. So I think maybe the reason of my problem is not about ICall configuration. Does the linkDB api need some special configuration or something? I didn't find much information about linkDB except the api documentation.
I'm using CCS 7.2, and SDK 1.40.00.45.
Any help will be appreciated. Thanks.

