I want to resend each character from one UART port to another.
Hardware: Lauchpad TivaC EK-TM4C123GXL.
First port is the default port that is connected to microUSB on the board.
The second port is UART2 (Rx = PD6; Tx = PD7) connected to DB9 through MAX3232:. Power is VBUS - GND.
DB9 is now connected to computer through RS232-USB adapter.
I communicate with 1st serial port through serial monitor in Energia (ttyACM0).
I communicate with 2nd serial port through serial terminal in Linux (ttyUSB0).
Code is very simple:
void setup() {
// initialize ports:
Serial.begin(9600); //connecte