Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS/AM5728: UART driver issue with binary data

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Hello,

I am communicating via my EVM to another evaluation board and we try to exchange data with the UART drives using an EDMA example.

We use the UART low level drivers UART-write2() and UART_read2(). I have set the UART parameters as follows:

uartParams.readDataMode = UART_DATA_BINARY; // This ensures that we are not leaving the Driver function upon a CR or LF character
uartParams.writeDataMode = UART_DATA_BINARY; // This ensures that we are not leaving the Driver function upon a CR or LF character
uartParams.readReturnMode = UART_RETURN_FULL;// This ensures that we are not leaving the Driver function upon a CR or LF character

I see that I receive the following data from the other CPU via the logic analyzer.

Please note that the 4th byte that we receive has the value 0xFF.

Now let us look at the data that we received via the driver, so let's have a look at the buffer 'u8_input_telegram_buffer[]'. 

The first 3 bytes match, but the 0xFF is somehow omitted. The 4th byte is 0x26 (on the logic analyzer it is the 5th byte) and I run into a timeout when trying to receive data due to the fact that 0xFF has been omitted.

What could make the UART drivers ignore a 0xFF on the receive line?

Thanks,

Andreas


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>