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.

RTOS/LAUNCHXL-CC2650: Code hangs at SimpleBLEPeripheral_taskFxn function

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650

Tool/software: TI-RTOS

Hi,

I am working with the CC2650 launch pad and i have configured it as an observer using the Simple BLE Peripheral plus Observer code. 

Here are the changes I made in the for(;;) loop of the SimpleBLEPeripheral_taskFxn function - 

char text7[] = "-";
UART_write(uart,text7,sizeof(text7));
ICall_Errno errno = ICall_wait(1);

This way the code runs perfectly, and i can receive beacons but the hyphen '-' is printed several times in the terminal.
However, I need to print to UART to another board so I cannot continuously print something from my BLE UART.

But when I remove these statements -
char text7[] = "-";
UART_write(uart,text7,sizeof(text7));

My code hangs and no beacons are observed.
I tried keeping these statements before the for(;;) loop and achieved same results. Increasing the time for ICall_wait() also results in the same way.

Could you please suggest me with a solution?