Chat freely about anything...

User avatar
By Leandro Silva
#15840 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.
User avatar
By Leandro Silva
#16476
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.
User avatar
By ArnieO
#16478
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.