imx53 uart2 can tx data, but not rx data?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx53 uart2 can tx data, but not rx data?

Jump to solution
1,205 Views
潘紫东
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.


Labels (2)
0 Kudos
1 Solution
885 Views
潘紫东
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)

View solution in original post

0 Kudos
4 Replies
886 Views
潘紫东
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 Kudos
885 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Pan,

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

weidong

0 Kudos
885 Views
潘紫东
Contributor III

thank you ! I solved the problem.

0 Kudos
885 Views
weidong_sun
NXP TechSupport
NXP TechSupport

ok Pan,

      good job !

weidong

0 Kudos