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.

CCS/LAUNCHXL-CC1310: UART data inside mainThread can only write once to uart terminal per loop

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

Tool/software: Code Composer Studio

hello ,

1. i'm tring to write two times to uart , some reasne it anly write once per loop  !!

1.1 we using  Version: 9.1.0.00010  all latest vertion 

here is the code  :

void *mainThread(void *arg0)
{

uint32_t curtime;
RF_Params rfParams;

UART_init();
ADC_init();
RF_Params_init(&rfParams);

.....

sprintf(str,"Send3 %d bytes O.k {%s} [%s] %d ADC0 %d\r\n",packetLength,&txPacket[2],&rxPacket[2],PacketCompare(&txPacket[2],&rxPacket[2],15), adcValue);
UART_write(uart,str,strlen(str)); // write to urt is o.k


sprintf(str,"execute done %d\r\n",);  
UART_write(uart,str,strlen(str));  // does not write to uart ??

 

please advice