Tool/software: TI-RTOS
Dear RTOS team,
I am writing an application for this platform that awaits for a byte of data from the UART0
interface and have noticed that if this received byte contains the hex numeric value 0xFF (dec 255)
the software does not trigger the callback (up to 0xFE it works).
Moreover the next time the software tries to read data from this interfacethe read value is wrong.
I have checked the input from the computer with an oscilloscope and the value of the received byte should be ok.
The UART parameters I am using are the following:
UART_Params_init(&uartParams);
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeMode = UART_MODE_BLOCKING;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.dataLength = UART_LEN_8;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.baudRate = 115200; /* Tried also 9600 with same result */
uartParams.parityType = UART_PAR_NONE;
And the reading is performed by calling:
UART_read(uartHandle, uartBuffer, sizeof(uartBuffer)); /* uartBuffer is a char array of the size of the received message */
Is it possible to receive a full byte (0xFF) of data via UART or not?
If it is possible, what should I change in the program to achieve this?
Thank you and best regards,
Samuele