imx53 uart2 can tx data, but not rx data?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx53 uart2 can tx data, but not rx data?

跳至解决方案
1,552 次查看
潘紫东
Contributor III

follow is uart2 iomux  and configuration:

in arch/arm/plat-mxc/include/mach/iomux-mx53.h

 

#define MX53_PAD_EIM_D26__UART2_TXD_MUX           (_MX53_PAD_EIM_D26__UART2_TXD_MUX | MUX_PAD_CTRL(NO_PAD_CTRL))
#define MX53_PAD_EIM_D27__UART2_RXD_MUX           (_MX53_PAD_EIM_D27__UART2_RXD_MUX | MUX_PAD_CTRL(NO_PAD_CTRL))

in arch/arm/mach-mx5/serial.h

/* UART 2 configuration */

#define UART2_UCR4_CTSTL        -1

#define UART2_DMA_ENABLE        0

#define UART2_DMA_RXBUFSIZE     512

#define UART2_UFCR_RXTL         16

#define UART2_UFCR_TXTL         16

and i sure  that  EIM_D27   not be Pin mux  to other function   in kernel sourec.

and URAT1 UART3 UART4  UART5 is ok;but UART2 is not work normal.


标签 (2)
0 项奖励
回复
1 解答
1,232 次查看
潘紫东
Contributor III

#define  __MX53_PAD_EIM_D27__UART2_RXD_MUX  IOMUX_PAD(0x490,0x148,2,0x880,1,0)

#define  __MX53_PAD_EIM_D26__UART2_RXD_MUX  IOMUX_PAD(0x48c,0x144,2,0x880,0,0)

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,233 次查看
潘紫东
Contributor III

#define  __MX53_PAD_EIM_D27__UART2_RXD_MUX  IOMUX_PAD(0x490,0x148,2,0x880,1,0)

#define  __MX53_PAD_EIM_D26__UART2_RXD_MUX  IOMUX_PAD(0x48c,0x144,2,0x880,0,0)

0 项奖励
回复
1,232 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Pan,

      Please paste all iomux pins(iomux structure) here , let me see .

weidong

0 项奖励
回复
1,232 次查看
潘紫东
Contributor III

thank you ! I solved the problem.

0 项奖励
回复
1,232 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

ok Pan,

      good job !

weidong

0 项奖励
回复