Hi,
Is there any theory to explain why data lost when receiving.
TEST : (10 times)
Rx(iMX53)
# stty -F /dev/ttymxc2 speed 115200 -echo
# cat /dev/ttymxc2 > result.txt
Tx(PC): transfer one text file that contains 10000 characters.
FAILED : The size of result.txt is about 2000 ~ 4000 bytes.
Hi charles
data may be lost due to UART RX buffer overflow,
since processor is busy on other tasks.
One can try to decrease processor load or try to use SDMA
with UART (this may alleviate problem but may not provide full guarantee).
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------