Recently I'm using IMX6Q develop package (rel4.1.15) and rewrite the UART code to a char device driver.
There is a random error while accessing UART data (1 byte error/20 millions*(8~16)bytes):
My test code is a simple write-read cycle between IMX6Q UART1 and another board.The
random error is certainly found in last byte for a burst read.0x0 is received while expecting another byte 0xC0
I debuged and found the byte in DMA receive buffer was error. I have checked the register of UART and it's the same as that of orginal UART code(the result is got from xxperiment not code).
The hardware and test code should be OK， because the error won't reproduce if using the original UART code.
Do you have any idea where is the problem?