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.

Compiler/LAUNCHXL-CC1352P: UART read, write in SImple Peripheral

Part Number: LAUNCHXL-CC1352P

Tool/software: TI C/C++ Compiler

I am trying to print and read data from UART in simple peripheral project. I have added the UART driver and UART_read and UART_write functions. 

I am using 1 characteristic to read data and another to write data in UART. Now, the issue is: In order to read data continuously, UART_read needs to be in an infinite loop, but this affects the UART_write functionality as now it first expects UART_read to take place and then prints data.

To read from UART :

UART_read(uart,&charValue2,sizeof(charValue2));
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR2, sizeof(uint8_t),
&charValue2);

Is there any other way to implements this ?