HI All,
UART communication with CDMA is as follows:
* Send AT command to CDMA through UART
* Receive response which is of huge bytes through UART.
I can able to read perfectly if the response is few bytes (only 26), if the response is more I cant able to read those and my code is as below.
Any help is appreciated....
uint8_t i=0,j=0,k=0;
// if(ui32Count <= 30){
while(i<=ui32Count){
UARTCharPut(UART1_BASE, pui8Buffer[i]);
DataBuffer[j] = UARTCharGet(UART1_BASE);
i++;j++;
}
SysCtlDelay(5000);
while((UARTCharsAvail(UART1_BASE)) == true){
DataBuffer[j] = UARTCharGetNonBlocking(UART1_BASE);
j++;
}
If I remove the SysCtlDelay then response will not be stored in buffer even for 2 bytes response, but if debug step by step without SysCtlDelay, buffer can get the response.
Thanks
srini