Here are pins of TM4C:
ESP8266 - TM4C
GND - GND
VCC - +3.3V
CH_PD - +3.3V
Rx - PD7 (Tx 2)
Tx - PD6 (Rx 2)
I tested with "AT" command, if it's success, it will return "OK".
Here is my code:
void setup() {
Serial2.begin(115200);
Serial.begin(9600);
Serial2.write("AT");
}
//------------------------------------------------------------
void loop()
{
while (Serial2.available()){
char result = Serial2.read();
Serial.print("Serial2 result:\t");
Serial.print(result);
Serial.println("");
}
}
But It just print 2 lines and nothing else
Serial2 result: A
Serial2 result: T