Part Number: AM2434
Hello experts,
this is a follow up question to the thread: AM2434: AM243X: Problem with partial read of a UART message with DMA - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums
@Vaibhav
Sorry for the delay in responding, it took some time until i was able to further test this.
I tested your example and yes it works, but only because the DMA rearm is fast enough to be ready before the second byte is recieved via UART.
The time between two symbols with baudrate 115200 is 87 microseconds. Until then the UART DMA read is rearmed and ready for the second read. On my custom system with an operating system and multiple tasks it can happen that the delay is too long for the DMA rearm. And when a Byte is already in FIFO the old DMA still triggers and it breaks when the second read is armed after that. (You can replicate this in your example by adding a short delay between the two reads: ClockP_usleep(100);)
Thats why i asked in my original question that its important that the FIFO is already filled with the second UART DMA read call.
Is this achievable with the driver? I want to read one single variable message with two UART DMA calls.