help! tm4c123gxl connect with esp8266
Posted: Sat Jul 16, 2016 4:07 am
Hi!, I'm try to connect tm4c123gxl with esp8266-01:
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:
But It just print 2 lines and nothing else
Serial2 result: A
Serial2 result: T
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:
Code: Select all
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