Serial input on ls1021a-twr lags after copy & paste

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Serial input on ls1021a-twr lags after copy & paste

457 次查看
morooholamini
Contributor I

After sending data  from the Linux host to the target through UART, return data from the target could start lagging by one or more characters. For example,  say, out of 180 characters sent only 178 characters return from the target and the next two keystrokes (any) on the serial console sends the two keystrokes to the target  immediately, but the target returns chars 179 and 180 to the host instead.  From this point on for any keystroke,  what the target returns is from the two keystrokes ago.  In the sample debug output below, keystroke 'd' is sent to the target immediately, but the target returns 'k' that was 2 keystrokes ago.

------------------------------

Sample debug output:

Frame to be sent to target (stdin -> serial): ' d '
Frame sent (stdin -> serial)): ' d '
Payload coming from ls1 on the serial: ' k '

------------------------------

We have verified our serial application puts data on the serial device correctly. We have also verified there is no data in the fifo when this issue occurs.  Cycling power on the board does not fix the problem, as power is still supplied to the UART/MBED through the host. The only way to get back to a steady state is to unplug and plug back the usb cable at J5. 

U-Boot 2015.04-dirty (Sep 14 2016 - 10:35:24)

Host: Ubuntu-16.04

Thank You for any help

标记 (3)
0 项奖励
1 回复

353 次查看
Pavel
NXP Employee
NXP Employee

Perhaps it is result configuration of your serial port communications program. on Ubuntu 16.04.

Do you use Minicom on your Ubuntu 16.04?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励