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: Bluetooth causes thread not to work

Part Number: CC2340R5
Other Parts Discussed in Thread: BLE-STACK

Tool/software:

CCS version : 12.7.0.00007

SDK version : simplelink_lowpower_f3_sdk_7_40_00_64

project : basic_ble_LP_EM_CC2340R5_freertos_ticlang

I create a single thread for work of Bluetooth , and use while(1) let it runtime forever , I find a question , when I call function of Bluetooth . 
Thread disappears for no apparent reason. Putting breakpoints anywhere will not interrupt. And I found that every time Thread disappears and does not work, it is after calling the Bluetooth function.

My process is to start Scan after CC2340 is started. If there is a Scan, the connection will be established. If not, restart Scan.

As you can see from the second picture, my Debug mode is running and a break point is set, but it will not be interrupted.

Following is my Code: