Hi,
I am new to this field and using Tiva TM4C123GXL to send data to java through UART0 at a Baud rate of 9600.
115200 Baud rate was not able to receive the whole string It was only able to receive 18 characters, but 9600 baud rate is working perfectly fine for receiving the data.
I was using UARTSend() of uartecho example code to send data to JAVA. I am unable to send large string, its sending garbage values into java. I actually need to send double or float through UART, only 8 characters are being sent if I convert them to a string or use sprintf along with UARTSend. Is there any other way to send Double or Float values?
Also the message is getting printed twice in JAVA and empty spaces are represented as []
I have also tried Uartprintf but that is not working.
Here is the UARTSend function that I am using:
void
UARTSend(const uint32_t *pui8Buffer, uint32_t ui32Count)
{
//
// Loop while there are more characters to send.
//
while(ui32Count--)
{
//
// Write the next character to the UART.
//
ROM_UARTCharPutNonBlocking(UART0_BASE, *pui8Buffer++);
}
}
PS: I have included all the required header files like #include "utils/uartstdio.h" #include "utils/uartstdio.c" for the UARTPrintf and all the Predefined Symbols by going through other threads.
Please help.
Thank You.