我已经在Linux源代码中启用了Uart,并创建了一个如何测试uart的映像 [英] i have enabled the Uart in linux source and created a image how to test the uart working
问题描述
我是新手,请帮帮我 我已经在Linux源代码中启用了Uart并创建了一个映像,而在内核启动时,它向我显示了日志
hi I am newbie please help me i have enabled the Uart in linux source and created a image,and while kernel boot time its showing me the log
Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x4000c000 (irq = 5) is a 16550A
console [ttyS0] enabled
serial8250.2: ttyS1 at MMIO 0x40098000 (irq = 7) is a 16550A
serial8250.3: ttyS2 at MMIO 0x4009c000 (irq = 8) is a 16550A
和ttyS0用于主机终端和目标板之间的交互 运作良好,我想测试ttyS1(连接tx = P0.10 rx = P0.11)和ttyS2(连接tx = P0.1 rx = P0.3),并将它们用于其他设备.在将它们用于其他设备进行连接之前,我想通过短接tx和rx来测试它们 如何测试这些uart的工作
and ttyS0 is used for interaction between host terminal and my target board that is working well, I want to test ttyS1(connection tx=P0.10 rx=P0.11) and ttyS2(connection tx=P0.1 rx=P0.3) and use those for the other device. before using those for other device to coonect I want to test those by shorting tx and rx how to test the these uart working
推荐答案
有许多可以与串行端口一起使用的终端仿真器,包括microcom,minicom,nanocom,picocom等.与您的Linux发行版一起使用.当您将RX绑定到TX并打开这些仿真器之一时,您键入的任何键都应出现在屏幕上.
There are any number of terminal emulators that will work with serial ports, including microcom, minicom, nanocom, picocom, etc. See if any of these were installed along with your Linux distribution. When you have RX tied to TX and open one of these emulators then any keys you type should appear on the screen.
此外,网络上还有一个非常简单的POSIX通信测试应用程序.这里是您可以获得它的地方之一的链接: http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html
Additionally there is a very simple POSIX communications test application out on the web. Here's a link to one of the places you can get it: http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html
这篇关于我已经在Linux源代码中启用了Uart,并创建了一个如何测试uart的映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!