Hi,
[quote]
PINMUX0 = 0x44000000; //Selects Function UART2_RTS and UART2_CTS
PINMUX4 = 0x00220000; //Selects Function UART2_TXD and UART2_RXD
I am not changing PUPD_SEL,PUPD_ENA are using default values.
[/quote]
As per the code, You are writing '0' value to the PINMUX registers.
Try to change like this,
PINMUX0 &= 0x00FFFFFF; //Selects Function UART2_RTS and UART2_CTS
PINMUX0 |= 0x44000000;
PINMUX4 &= 0xFF00FFFF; //Selects Function UART2_TXD and UART2_RXD
PINMUX4 |= 0x00220000;