Hi guys,
I have a problem to check rs232 port in 8x base board in imx8qxp-mek, i think uart2 port doesn't work.
I have check already rs232 device in PC environment worked, but in imx8qxp-mek, I have check all of LPUART* ports, but except LPUART0(debug port), 3 lpuart have on received rx data.
I checked dts file i think it is okay.
I have check /unitest/UART/test program and
cat /proc/tty/driver/fsl-lpuart.
Could let me know where I miss ?
Thank you for reading.
Hi guys,
Thank you for answering.
1. I am using imx8qxp-mek evaluation board(CPU) and imx8x baseboard.
2. CPU is C0.
3. bsp verson is kernel 4.14.98-2.3.0
4. I didn't do any modification.
I am using rs232 port in imx8x BB. I want to know How to use this rs232 port.
I have checked "ttyLP2", but it didn't work.
The ttyLP2 is enabled by default BSP. You can test it.
The hardware for ttyLP2 is on the base board as J37(DB9 connector).
1. use stty configure the ttyLP2 and test
stty -F /dev/ttyLP2 115200
echo abc > /dev/ttyLP2
2. enable ttyLP2 in systemd as another login console for test purpose
systemctl enable serial-getty@ttyLP2
You will have two login consoles.
hi biyong sun,
Thank you for answering,
I have followed your comments, but I have setup baudrate and com port, received port have shown always broken input charaters.
I have checked the baudrate and other settings. Where should i check other things?
Thanks,
Hi BiyongSun,
Thank you for answering,
I can't fully understand your answer, you mean i can check ttyLP2 port without connect rs232 device or should i connect rs232 device?
but, in both of case, I can't see any of charaters in COM10(default serial port in my PC)/11/12/13.
By the way, I have another question,
If i will connect and comunicate UART device, how do i connect my UART device to Base board?
Thanks
Hi BiyongSun,
Thank you for answering.
I can't fully understand your answer. you mean i can check ttyLP2 without connect rs232 device?
As you recommend, I have set "
systemctl enable serial-getty@ttyLP2", but doesn't seem to work.
I have com port is COM10/11/12/13 and serial debug port is COM10, but other com port not show any character after input "echo abc > ttyLP2"