This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART2 interface on OMAP3 EVM

Other Parts Discussed in Thread: OMAP3530

Hi,

    I have got Mistral OMAP3530 EVM and i'm trying to use UART2 interface on the board. While i'm able to configure UART2_CTS and UART2_TX successfully, i'm unable to access UART2_RTS and UART2_TX at 0x48002176 and 0x4800217A respectively. Kindly let me know how to proceed further.


Regards,

N.S.SriHarsha

  • Can you elaborate on what you mean by you can not access these?

    The pad_config for uart2_rts & uart2_cts share the same register address, uart2_rts uses bits [31:16] and uart2_cts uses bits [15:0]

    The same is true for uart2_rx and uart2_tx, uart2_rx uses bits [31:16] and uart_tx uses bits [15:0].

    Full details of the register bits can be found in section 7.6.3.2 of theTRM (Rev M.)

      Paul

  • Hi Paul,

          Thank you for showing interest in my post. I am trying to write an application at the uboot level which will indeed test UART2 interface. For this i need to configure UART2_CTS, UART2_RTS, UART2_TX and UART2_RX, while i'm able to modify the data available in the UART2_CTS bits [15:0] and UART_TX bits [15:0], I'm unable to modify data in UART2_RTS bits [31:16] and UART_RX bits [31:16].

    You can also try displaying the register contents at the bootloader(u-boot) prompt:

    md 0x48002176 1 (Board hung)

    md 0x4800217a 1 (Board hung)

    Hope i conveyed the problem.

     

    Regards,

    N.S.SriHarsha

  • I think I see your problem.

    You are using 32 bit read/write on a non aligned address.  You need to write both UART2_RTS and UART2_CTS at address 0x4800 2174. The same goes for UART2_RX and UART2_TX at address 0x4800 2178.

      Paul

  • Hi Paul,

            That is what i am trying to achieve. Kindly help me through.

     

    Regards,

    N.S.SriHarsha

  • The UART signal directions are as follows:

     

    UART2_TX           o/p

    UART2_RX          i/p

    UART2_CTS        i/p

    UART2_RTS        o/p

     

    TRM Section 7.6.3.2 describes the bit functions of the padconf register (there are multiple registers, each one controlling a pair of pads, see table 7-4 for details).

     

    For the padconfs register at 0x4800 2174 (named UART2_CTS), bits [31:16] are used for UART2_RTS and bits [15:0] are used for UART2_CTS

     

    So the value to be written to the UART2_RTS bits is 0x0000 and the for UART2_CTS bits it is 0x0100 (input enabled).

     

    Therefore you would write 0x00000100 to address 0x48002174 to configure both UART2_RTS and UART2_CTS.

     

     

    For the padconfs register at 0x4800 2178 (named UART2_TX), bits [31:16] are used for UART2_RX and bits [15:0] are used for UART2_TX

     

    So the value to be written to the UART2_RX bits is 0x0100 (input enabled) and the for UART2_TX bits it is 0x0000.

     

    Therefore you would write 0x01000000 to address 0x48002178 to configure both UART2_RX and UART2_TX.

     

    BRs

     

      Paul

     

     

     

     

  • Hi Paul,

             Thank you for your time and valuable input. My application now works absolutely fine with no issues. Thank you once again.

     

    Regards,

    N.S.SriHarsha