-->
Page 1 of 1

Restarting devices, doesn't seem to restart the code

PostPosted: Fri May 15, 2015 4:41 pm
by Stevenelson
I have finally come up with a process that works consistently to upload code from the arduino ide to my esp. What works for me is to have an on/off switch between the ftdi and my esp. Before I upload code via the ide, I keep the ftdi plugged into my laptop and I flip the power switch off then on on the esp board.

Then I upload the code and it writes fine. If I don't do that the code compiles and I get the espcomm_open failed.

Anyway... that much works.

Once it's uploaded I can open the serial monitor and debug my code.

The problem is that I can ONLY run my esp code if I upload it. If I just restart the ESP, without uploading code, I see some garbage text in the serial monitor, but the setup/loop code never runs.

Has anyone experienced this?

Re: Restarting devices, doesn't seem to restart the code

PostPosted: Fri May 15, 2015 4:44 pm
by Stevenelson
hahaha

Right after I pushed submit I checked my email and the answer to this very problem was in an email.

This happened because I had connected gpio0 to ground so I could upload the code. unplug it and voila it boots correctly.