MX6UL UART2 RXProblem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MX6UL UART2 RXProblem

2,106件の閲覧回数
nachodiz
Contributor III

Dear all

UART2 from our custom MX6UL board is attached to a RN4871 Bluetooth Module

UART2 TX works fine but RX is not working

How can i configure uart2 rx properly?


UART2.png

King Regards

ラベル(5)
0 件の賞賛
返信
4 返答(返信)

1,696件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

 Please read the dtb (as is, in binary) from the board and send me. 

Regards,

Yuri.

0 件の賞賛
返信

1,696件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello, nachodiz !

  from Your dtb configuration for UART2 :

serial@021e8000 {
compatible = "fsl,imx6ul-uart", "fsl,imx6q-uart", "fsl,imx21-uart";
reg = <0x21e8000 0x4000>;
interrupts = <0x0 0x1b 0x4>;
clocks = <0x1 0xbf 0x1 0xc0>;
clock-names = "ipg", "per";
dmas = <0x7 0x1b 0x4 0x0 0x7 0x1c 0x4 0x0>;
dma-names = "rx", "tx";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x37>;
fsl,uart-has-rtscts;
};

  First - RTS/CTS is not used on Your scheme, therefore  line "fsl,uart-has-rtscts;"

should be removed. Further - DMA cannot be used without RTS/CTS, so lines "dmas"

and "dma-names"  should be removed too. You may try enclosed dtb file.

  Note - high speeds cannot be used without DMA.

Regards,

Yuri.

0 件の賞賛
返信

1,696件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please check (and modify if needed) under Linux :
1) IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA register (0x20E_0098) :
     if  bit field mux_mode = 0.
2) IOMUXC_UART2_RX_DATA_SELECT_INPUT ( 0x20E_062C) :
  if bit field DAISY = 01.

You may use memtool utility, located in /unit_tests directory of NXP BSP.

Have a great day,
Yuri

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

0 件の賞賛
返信

1,696件の閲覧回数
stevenyu
Contributor III

Dear Yuri,

Recently, we use i.mx6ull and try to enable UART5, and then initialize it to be RS-232. 

We can have TX working by echo "hello" > /dev/ttymxc4, and the "hello" will be show on PC console.

However, the RX path from PC console to i.mx6ull does not work.

We want to try the comment you mentioned. Would you please advise where can we configure these two parameters ?

IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA / IOMUXC_UART2_RX_DATA_SELECT_INPUT

1) IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA register (0x20E_0098) : 
     if  bit field mux_mode = 0.
2) IOMUXC_UART2_RX_DATA_SELECT_INPUT ( 0x20E_062C) :
  if bit field DAISY = 01.

Do you have any experience to configure UART on i.mx6ul to be RS-232/RS-485 ?

 

Regards,

Steven Yu

0 件の賞賛
返信