Dear NXP
ls1043ardb (QorIQ-SDK-V2.0-20160527-yocto),使用duart1连接蓝牙,蓝牙(kernel)read到的数据偶尔异常。
连接方式:
duart0 作为普通串口;
duart1连接蓝牙。
采用这种方式之后,只能用作3线连接,即:RTS/CTS悬空。
DTS:
duart0: serial@21c0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x00 0x21c0500 0x0 0x100>;
interrupts = <0 54 0x4>;
clocks = <&clockgen 4 0>;
};
duart1: serial@21c0600 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x00 0x21c0600 0x0 0x100>;
interrupts = <0 54 0x4>;
clocks = <&clockgen 4 0>;
};
而且发现,串口(duart0)打印越多,蓝牙(duart1)越容易数据异常。
请问,duart0 和duart1是否会相互干扰?或者是别的什么原因?
谢谢!
The LS1043a implements two DUART modules. DUART1 contains UART1 and UART2 and DUART2 contains UART3 and UART4.
The LS1043a UART3 SIN/SOUT can be assigned to UART1 CTS/RTS pins.
The LS1043a UART4 SIN/SOUT can be assigned to UART2 CTS/RTS pins.
The LS1043a UART1 and UART2 signals can be connected to the LS1043ARDB J4A and J4B.
If the LS1043ardb SW3[3] is OFF, UART1 is connected to J4A.
This setting provides used all UART1 signals or UART1 SIN/SOUT, UART3 SIN/SOUT on the J4a.
The LS1043ardb J4B always can be used as UART2 signals or UART2 SIN/SOUT, UART2 SIN/SOUT.
If the LS1043ardb SW3[3] is ON, UART1 is connected to CMSISDAP.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------