I am not getting(Received data)data Via UART0 when both UART0 and UART2 are enabled(all Initialisation is done properly).When I have commented UART2 initialisation then I am able to receive data via UART0.UART0 Tx works in both conditions. UART0 Pin(Port 6.6(Rx),6.7(Tx)) UART2 Pin(Port 3.0(Tx),3.1(Rx)) How can use both Please guide me through Regard Sai
You have to be careful using pins 3.0 and 3.1 for UART2 because they can also be used for UART0. Misconfiguring something can cause some headache as it's not immediately obvious what's going wrong since the code compiles and runs without any other trouble.
What is the code you use to initialize the pins for UART0 and UART2?
When I configure my UARTs, for the Tx GPIO pins, I have:
GPIO_InitStructure.GPIO_IPInputConnected = GPIO_IPInputConnected_Disable; Somewhat counter-intuitive, but it's been working for me so I guess it's worth a shot.