Since I cannot see that issue from here, can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
I cannot see how much input is coming into the UART, but as I can see you are printing ~20 times the number of characters you receive. Additionally you have a delay of 50ms in the character receive part. This might lead to Rx overflows that might not be printed as you want, because you clear the Rx buffer.
I would suggest you to
- Remove your interrupts from UART, you are not using them
- Remove the delay in the receive loop
- Remove as much of the printf() as possible out of the receive loop.
Using printf() is comparably slow. Using sprintf() and UART_PutString() works much faster.