-->
Page 1 of 1

ESP01 not execute code after uploading.

PostPosted: Fri Nov 22, 2019 2:21 pm
by vabo
Hello, i have an issue since days. I use :
- Arduino IDE (or esptool.py)
- ESP01
- FTDI ( or ardunio, or 18650 to powered)

And I have same behavior each time. I put GPIO 0 to down, plug my FTDI and upload a blink code : OK.
Then I put GPIO0 to up, a small down on RST and my ESP01 restart, but doesn't execute the code.
I try to upload some blink code, with some pin led, i try ardunio IDE, esptool.py, platefrom.io : same result.
I try FTDI power supply, HWH 131, 18650 always same.

If i set a baudrate and call a Serial.println : no message, but when i reset i have this message on 74880 :
Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c

I think it's a normal boot mode, but why ESP doesn't execute my code ?

Thanks for your help.

Vabo

Re: ESP01 not execute code after uploading.

PostPosted: Sat Nov 23, 2019 7:58 am
by schufti
"csum err" does not look like a good start ...
try setting flash mode to "DIO".

Re: ESP01 not execute code after uploading.

PostPosted: Fri Nov 29, 2019 11:17 pm
by Bram van Oosterhout
I suspect your upload is successful, but the esp8266 ends up in a weird state. After the upload, diconnect the module, wait 60 secs to let all capacitors drain, reconnect and boot.
Your new program should boot.

See my post at viewtopic.php?f=160&t=20053&hilit=Oosterhout&start=4
Response #8 is on page 2.