AnsweredAssumed Answered

How to use the uart unit app test in i.mx6?

Question asked by Taehun Kim on Feb 15, 2015
Latest reply on Feb 16, 2015 by Taehun Kim

Dear Sir,

 

We're testing the uart's operation with the i.mx6 dual lite board.

 

The Kernel version is "Linux freescale 3.0.35-2666-gbdde708 #6 SMP PREEMPT Mon Feb 16 09:25:50 KST 2015 armv7l GNU/Linux".

 

And we're using the gnome release package S/W in the i.mx6 dual lite board.

 

We had found uart unit test app in the gnome release package S/W.

 

But we think that the app doesn't work well.

 

Our test result is as follows.

 

root@freescale /unit_tests$ ./mxc_uart_xmit_test.out /dev/ttymxc2

UART 115200, 8bit, 1stop, PARENB, HW flow disabled

test begin, press 'c' to exit

sent 10000 bytes with speed 102301.790281bps

sent 10000 bytes with speed 102301.790281bps

sent 10000 bytes with speed 102301.790281bps

sent 10000 bytes with speed 102301.790281bps

sent 10000 bytes with speed 102301.790281bps

c

sent 10000 bytes with speed 102432.778489bps

tcount=60000

rcount=0

test exit

root@freescale /unit_tests$

 

We expect that the rx data will be saved in the uart_read.txt file.

 

But rcount is 0 and the uart_read.txt file is null.

 

If there is an additional setting for this test, please let us know.

 

 

Sincerely,

Taehun Kim

Research Engineer

LG Electronics

Outcomes