UART Error about the i.MX53_SMD_BSP

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

UART Error about the i.MX53_SMD_BSP

842 Views
larson
Contributor III

Hello everyone,

 

        I want to use the UART1/2/3/4/5  for my application serial communication, but when i create a serial port in my application, the baudrate is always 9600, when serial port create success, i can see the baud rate is set(use the debug serial port, see the attachment), so why? If somebody know about it, please tell me, thanks! 

Original Attachment has been moved to: SMD_BSP.txt.zip

Tags (2)
0 Kudos
4 Replies

638 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,larson,

    By default, UART1/UART2/UART3 are iomuxed in mx53_smd.c :

/* UART1 */

MX53_PAD_CSI0_DAT10__UART1_TXD_MUX,

MX53_PAD_CSI0_DAT11__UART1_RXD_MUX,

/* UART2----used by GPS */

MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX,

MX53_PAD_PATA_DMARQ__UART2_TXD_MUX,

/* BT: UART3---used by Bluetooth*/

MX53_PAD_EIM_D24__UART3_TXD_MUX,

MX53_PAD_EIM_D25__UART3_RXD_MUX,

MX53_PAD_EIM_EB3__UART3_RTS,

MX53_PAD_EIM_D23__UART3_CTS,

UART1 is used to be debug UART. so you can't use UART2 & UART3.

/*UART4 & UART5*/

UART4 & UART5 signals are not routed out via i.mx53 pads. From reference manual of i.mx53, they can be iomuxed via CSI0 port or Keypad port:

uart4-uart5-imx53.png

If you want to use them, you should check if their signals are iomuxed via correspongding pads and if iomux settings have been done in bsp file.

Regards,

Weidong


638 Views
larson
Contributor III

Hi Weidong,

     Thanks for your help.

     I configuration the UART IO port, and delete the other driver in the BSP, so the UART2/3/4/5 can be used, i test them and can send/recive data, but the baud rate when i create the com port is still 9600, when i use the high baud rate like 38400 to create the com port, the transmission of data will be lost, so do you know what about it?

0 Kudos

638 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,larson,

      Please compare your application code with mine, I paste source code that I have used here.

Regards,

Weidong

0 Kudos

638 Views
larson
Contributor III

Hello Weidong,

        Thanks for your help, i'm work at WINEC700 platform.

     Regards,

     larson

0 Kudos