Jump to content
dqn

help! tm4c123gxl connect with esp8266

Recommended Posts

Hi!, I'm try to connect tm4c123gxl with esp8266:

 

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
 

Share this post


Link to post
Share on other sites

Also note that the programmer + TM4C can take up in total up to 150mA or something.

Altough the programmer should not consume much while idle 

Share this post


Link to post
Share on other sites

Hi, thank for all responses.
When program start, esp8266's led is blinking, so I think it's not about the current which TM4C supplies, when I try Serial2.begin(9600), it doesn't show anything , when I try both Serial with 115200 baud rates, it show just like example above
I have try "AT" and "AT+GMR" but nothing happen at all, it reads and shows exactly character that I send to it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...