-->
Page 1 of 1

ESP8266 uploaded successful but sketch not executed

PostPosted: Fri Jan 15, 2016 9:48 am
by Yahya Khaled
Hi Guys!! thanks for the community support. Can someone kindly help me resolve this issue. Briefly, I can compile the sketch and upload it but it seems to be dis-regarded by ESP8266.

Information:
1- I have Arduino IDE as compiler with ESP board configurations loaded
2- I've used one of the example sketches that come with ESP8266wifi library (Wifi Web Server)
3- Set GPI0 to 0 during programming only
4- Set CH_PD to 3.3 (everything is powered via a 5to3.3 regulator
5-Using FTDI 3.3v for USB to serial - also configured Arduino IDE to there relative serial port
6- Using Arduino IDE 1.6.5 (I had some issues with the latest version so I downgraded)
7- OS: Mac OS
8- I never had issues programming Arduino nano

So what is the issue I'm having?
Upon compiling and upload the sketch - everything seems successful. I get a message "Done uploading".
Sketch uses 215,536 bytes (49%) of program storage space. Maximum is 434,160 bytes.
Global variables use 33,682 bytes (41%) of dynamic memory, leaving 48,238 bytes for local variables. Maximum is 81,920 bytes.
Uploading 219680 bytes from /var/folders/j2/kbjd_5yn72950m6rphhdwwjc0000gp/T/build8691815100860100844.tmp/WiFiWebServer.cpp.bin to flash at 0x00000000
.......................................................................................................................................................................................................................

Now, when I set GPI0 to "open" and I power cycle the circuit - the ESP goes back to the initial configuration (Running as AP) not connecting to the intended AP. And its not sending any serial messages (baud rate is consistent with the sketch).


I would be grateful if someone can help resolving this issue.

Re: ESP8266 uploaded successful but sketch not executed

PostPosted: Fri Jan 15, 2016 10:14 am
by Yahya Khaled
It seems I miss-understood something. I just uploaded an "LED blinking" sketch - it seems to work just fine. Something I don't understand, the bin that we upload doesn't over-write the AT configurations - previously loaded via serial.

Re: ESP8266 uploaded successful but sketch not executed

PostPosted: Mon Feb 15, 2016 4:04 am
by rmsn
hi, i had the same problem. Please replace the power suply with a external one. the FTDI does not have enouph power to run the esp in working mode. It only alows to program but not to run ir after the upload finish.