Hi
We are using EK-TM4C1294XL Development Board for development with CCS version 6.0.1 and TivaWare_C_Series-2.1.0.12573.
We want to read 4K bytes data from UART .
Receive function is as below:
int reset_buffer=0;
char response_array[1200];
void UARTIntHandler(void)
{
uint32_t ui32Status;
ui32Status = ROM_UARTIntStatus(UART0_BASE, true);
ROM_UARTIntClear(UART0_BASE, ui32Status);
while(ROM_UARTCharsAvail(UART0_BASE)){
char uart_data=ROM_UARTCharGet(UART0_BASE);
response_array[reset_buffer]=uart_data;
SysCtlDelay((g_ui32SysClock)/10000000);
reset_buffer++;
}
While reading response_array, only 255 bytes are shown in response array overwritten in a circular pattern.
This is full resopnce we are getting from server
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
statusCode: 100
statusMsg: Success
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 09 Feb 2016 09:36:10 GMT
Connection: close
96
{"sc":"100","sd":"Success","ct":"1","sa":[{"id":"s1","sr":"30","lr":"0.0","hr":"100.0","lw":"20.0","hw":"80.0","la":"10.0","ha":"90.0","di":"false"}]}
0
In response_array data is shown as below:
0","hr":"100.0","lw":"20.0","hw":"80.0","la":"10.0","ha":"90.0","di":"false"}]}
0
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
statusCode: 100
statusMsg: Success
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 09 Feb 2016 09:36:10 GMT
Connection: close
96
{"sc":"100","sd":"Success","ct":"1","sa":[{"id":"s1","sr":"30","lr":"0.
Please help me to solve this issue.