AnsweredAssumed Answered

unit8_t and char leave out \n on UART replace with ÿ

Question asked by bretcj7 on Nov 3, 2016
Latest reply on Nov 16, 2016 by Jithul_Janardhanan

Baffled by what I am seeing.  When writing a generic string that is a char array it always appends a y with to dots ( ÿ ) at the end of the serial output like it can't recognize the \n in the buffer.


Here is the code and even if i put a \n in the middle of the string it will replace that with the  ÿ when it outputs the serial data.

I verified the char array looks fine before the adi_uart_write is called, you can see the \n in the second to last element of the array before the null terminator \0, so i know its in the array.


char test[] = "A:100|B:200\n";
// Blocking TX right now
eResult = adi_uart_Write(ghUART, test, strlen(test));