UART5: Differences between Dual and Quad

Discussion in 'General Discussion' started by Yury, Jun 4, 2015.

  1. Yury

    Yury New Member

    Joined:
    Jan 28, 2015
    Messages:
    5
    Likes Received:
    0
    Hi!

    I am using UART5 for RS485 communication. I've enabled UART5_CTS pin to manage rs485 driver output direction. And it works well on the UDOO Quad.
    But it does not work on the UDOO Dual. I can't manage UART5_CTS pin at all. Furthermore when I try to manage this pin (MX6Q_PAD_CSI0_DAT19__GPIO_6_5) as regular pin for output, I can't do it. This pin always in '1' state...

    Does anybody knows the reason of this behaviour?
    Does anybody knows the differences between Dual and Quad?

    //Yury
     
  2. Yury

    Yury New Member

    Joined:
    Jan 28, 2015
    Messages:
    5
    Likes Received:
    0
    Hi,
    I think I've found an inaccuracy in the sources.
    1) iomux-mx6dl.h
    I think defines MX6DL_PAD_CSI0_DAT19__UART5_CTS and MX6DL_PAD_CSI0_DAT19__UART5_RTS are mixed up. Because I have to use ххх_RTS for enabling CTS line.
    2) board-mx6_seco_UDOO.c
    In the function mx6q_seco_UDOO_fec_phy_reset the UART5 settings became corrupted, because using defines MX6Q_PAD_RGMII_RD0__GPIO_6_25 and MX6Q_PAD_RGMII_RD0__ENET_RGMII_RD0 redefines previous pads settings. I think it should be:
    if (cpu_is_mx6q()) mx6q_seco_UDOO_fec_phy_reset(NULL);
    instead of
    mx6q_seco_UDOO_fec_phy_reset(NULL);

    After these fixes UART5_CTS works well (used this https://community.freescale.com/message/354499#354499 article).

    //Yury
     
  3. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi guys,
    thanks for pointing this out! We'll fix it ASAP.
     
  4. gionji

    gionji Member

    Joined:
    Jun 28, 2013
    Messages:
    38
    Likes Received:
    0
    #RESPECT_4_YURY :)
     

Share This Page