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/CC1310: uart getting stuck

Part Number: CC1310

Tool/software: Code Composer Studio

Hello,

We need to send data from cc1310 to gsm module.

1.we were took 2 tasks in our program

1.rxTask_init(ledPinHandle)- We receive data from our rf transmitter and sending to gsm module via uart.But 1st time data get properly to the gsm.but 2nd time program get stuck at some uart write api.we were also checked stack peak values which are within limits.
Please check our uart code below and please suggest us what we made wrong in our  code.

uint8_t mm1,mm2,mm3;
uint8_t hh1,hh2,hh3,tmp;
strcat(uri,string1);
a=(strlen(uri));
strcat(uri,username);
strcat(uri,string2);
strcat(uri,password);
strcat(uri,string3);
strcat(uri,apikey);
strcat(uri,string4);
detailCode[0]=detailcode/100+0x30;
detailCode[1]=((detailcode/10)%10)+0x30;
detailCode[2]=(detailcode%10)+0x30;
strcat(uri,detailCode);
strcat(uri,string5);
deviceCode[0]=devicecode/100+0x30;
deviceCode[1]=((devicecode/10)%10)+0x30;
deviceCode[2]=(devicecode%10)+0x30;
strcat(uri,deviceCode);
strcat(uri,string6);
batchLtr[0]=((batchVal/10000000)+0x30);
batchLtr[1]=(((batchVal/1000000)%10)+0x30);
batchLtr[2]=((( batchVal/100000)%10)+0x30);
batchLtr[3]=((( batchVal/10000)%10)+0x30);
batchLtr[4]= ((( batchVal/1000)%10)+0x30);
batchLtr[5]=((( batchVal/100)%10)+0x30);
batchLtr[6]=((( batchVal/10)%10)+0x30);
batchLtr[7]= '.';
batchLtr[8]=((( batchVal%10))+0x30);
strcat(uri,batchLtr);
strcat(uri,string7);
totalLtr[0]=((totalVal/10000000)+0x30);
totalLtr[1]=(((totalVal/1000000)%10)+0x30);
totalLtr[2]=((( totalVal/100000)%10)+0x30);
totalLtr[3]=((( totalVal/10000)%10)+0x30);
totalLtr[4]= ((( totalVal/1000)%10)+0x30);
totalLtr[5]=((( totalVal/100)%10)+0x30);
totalLtr[6]=((( totalVal/10)%10)+0x30);
totalLtr[7]=((( totalVal%10))+0x30);
strcat(uri,totalLtr);
strcat(uri,string8);
battPntg[0]=batterypercentage/100+0x30;
battPntg[1]=((batterypercentage/10)%10)+0x30;
battPntg[2]=(batterypercentage%10)+0x30;
strcat(uri,battPntg);
strcat(uri,string9);
deviceId[0]=deviceid/100+0x30;
deviceId[1]=((deviceid/10)%10)+0x30;
deviceId[2]=(deviceid%10)+0x30;
strcat(uri,deviceId);
strcat(uri,string10);
date[0]=year/1000+0x30;
date[1]=(((year/100)%10)+0x30);
date[2]=(((year/10)%10)+0x30);
date[3]=((year%10)+0x30);
date[4]='-';
date[5]=((month/10)+0x30);
date[6]=((month%10)+0x30);
date[7]='-';
date[8]=((day/10)+0x30);
date[9]=((day%10)+0x30);
strcat(uri,date);
strcat(uri,string11);
mm1=MM/16;
mm2=MM%10;
mm3=(mm1*10)+mm2;
tmp = ((HH & 0xF0) >> 0x4) * 10;
hh1=(tmp + (HH & 0x0F));
tim1[0]=((hh1/10)+0x30);
tim1[1]=((hh1%10)+0x30);
tim1[2]=':';
tim1[3]=(((mm3/10)+0x30));
tim1[4]=((mm3%10)+0x30);
tim1[5]=':';
tim1[6]=((sec/10)+0x30);
tim1[7]=((sec%10)+0x30);
strcat(uri,tim1);
strcat(uri,string12); 
UART_write(uartHdl, &str32, sizeof(str32));
UART_write(uartHdl, &str21, sizeof(str21));
UART_write(uartHdl, &str32, sizeof(str32));
UART_write(uartHdl, &str22, sizeof(str22));
UART_write(uartHdl, &str23, sizeof(str23));
UART_write(uartHdl, &str24, sizeof(str24));
UART_write(uartHdl, &str25, sizeof(str25));
UART_write(uartHdl, &str26, sizeof(str26));
a=(strlen(uri));
UART_write(uartHdl,&uri,a);
UART_write(uartHdl, &str28, sizeof(str28));
UART_write(uartHdl, &str29, sizeof(str29));

Regards,

Vyankatesh Tamhankar