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.

LAUNCHXL-CC1350: BLE is not working when any data is received from uart

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

Hello,

I am using CC1350 launchpad for testing Ble and uart functionality. Both are working perfectly when we run independently, i.e, uart seperately flashed in cc1350 and tested both receiving(CallBackfuction used) and transmitting(polling). BLe seperately flashed and tested using btool it is working perfectly. I added uart in simple BLE peripheral example, now  i am facing two problems.

1. I could not able to detect my bluetooth launchpad using btool.

2. By using uart i can receive data, but transmitting is not working as expected. I used polling function uart_write(), but whenever this function is called then i am entering in to

UARTREADCALLBACK function.

I have attached the uart functionality which i have added in simple ble peripheral example.

uart.txt
// Task configuration
Task_Struct uartTask;
Char uartTaskStack[UART_TASK_STACK_SIZE];

// Task configuration
#define UART_TASK_PRIORITY                     2

void Uart_createTask(void)
{
    Task_Params taskParams;

    // Configure task
    Task_Params_init(&taskParams);
    taskParams.stack = uartTaskStack;
    taskParams.stackSize = UART_TASK_STACK_SIZE;
    taskParams.priority = UART_TASK_PRIORITY;

    Task_construct(&uartTask, uart_taskFxn, &taskParams, NULL);
}

void uart_taskFxn(UArg a0, UArg a1)
{
    UART_init();

    /* Create a UART with data processing off. */
    UART_Params_init(&uartParams);
    uartParams.baudRate = 9600;
    uartParams.writeDataMode = UART_DATA_BINARY;
    uartParams.readDataMode = UART_DATA_TEXT ;
    uartParams.readEcho = UART_ECHO_OFF;
    uartParams.readMode= UART_MODE_CALLBACK;
    uartParams.writeMode=UART_MODE_BLOCKING;
    uartParams.readReturnMode = UART_RETURN_FULL;
    uartParams.readTimeout=UART_WAIT_FOREVER;
    uartParams.readCallback=uartCallbackFunction;


    uart = UART_open(Board_UART0, &uartParams);

    if (uart == NULL)
    {
        /* UART_open() failed */
        while (1);
    }

    UART_read(uart, Uart_Rx_Buff,1);

Please suggest necessary things i require to do to work both functionalities.

Haricharan