-->
Page 1 of 3

How to debug ESP8266 code usind Arduino IDE?

PostPosted: Mon Apr 27, 2015 3:03 pm
by Leandro Silva
I'm using Arduino IDE to write, compile and upload my code into ESP, but if I write
Code: Select allSerial.begin(115200);
at setup() section and
Code: Select allSerial.print("Some text");
ESP just freezes. What can I do to fix this? There is a problem with my code and would be nice to use Serial.print() to debug it.

Re: How to debug ESP8266 code usind Arduino IDE?

PostPosted: Mon Apr 27, 2015 4:38 pm
by ArnieO
That works for me, so you need to look for some kind of error in your setup.

Re: How to debug ESP8266 code usind Arduino IDE?

PostPosted: Mon May 04, 2015 11:40 am
by Leandro Silva
ArnieO wrote:That works for me, so you need to look for some kind of error in your setup.


When I compile my code, does the IDE send the firmware to the ESP? I remember that a few weeks ago I was using NodeMCU and I was thinking if maybe the NodeMCU firmware is in conflict with my code.

Re: How to debug ESP8266 code usind Arduino IDE?

PostPosted: Mon May 04, 2015 1:12 pm
by ArnieO
Leandro Silva wrote:
ArnieO wrote:That works for me, so you need to look for some kind of error in your setup.


When I compile my code, does the IDE send the firmware to the ESP? I remember that a few weeks ago I was using NodeMCU and I was thinking if maybe the NodeMCU firmware is in conflict with my code.

Yes it sends firmware to the ESP after compile. Remember to pull GPIO0 low. Sometimes my ESPs block, and for some reason get deblocked when I reflash them with AT firmware and then again flash whatever I need it to run. Strange.