Chat freely about anything...

User avatar
By rith87
#27517 Still no luck. How are you folks flashing the ESP? Here's my esptool command for a full flash (based on the addresses in the memory layout in the documentation):

Code: Select allesptool.py --port /dev/ttyUSB0 --baud 230400 write_flash -fm dio 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin 0x3FC000 ../esp-open-sdk/sdk/bin/esp_init_data_default.bin 0x3FE000 ../esp-open-sdk/sdk/bin/blank.bin


@lethe, how do you do a full re-flash?
User avatar
By Touliloup
#27697 Hello,

I had exactly the same problem, able to program the esp but no single line of code was executed and the esp was just reseting in a loop. I've tried everything from changing the power supply, flashing bigger code, small blink example, adding capacitor, ... nothing had worked.

But I then succeed to bring the esp back to life thanks to this command:
python esptool.py --port COM5 --baud 76800 erase_flash

It seems that esptool.exe is not capable of doing this, here are the instruction for windows user:
-install Python 2.7 (2.7.9 I believe in my case), do not use Python 3.x, there seems to be some problem.
-download esptool.py https://github.com/themadinventor/esptool and put it in a local directory
-open a terminal in the directory where esptool.py is located
-run the command ( change the port according to your serial COM port)
Code: Select allpython esptool.py --port COM5 --baud 76800 erase_flash

-You should now be able to flash and use your ESP as before (I use Arduino IDE to flash it, and had reflash at least 40 or 50 times without success before using this flash erase technique).

Source: https://github.com/esp8266/Arduino/issu ... t-96399149

I hope you'll be able to play with your ESP again thanks to that :D
User avatar
By failing
#28889 thanks! This worked.. wasted 3 hours trying to figure out why it would not boot :)

Touliloup wrote:Hello,

I had exactly the same problem, able to program the esp but no single line of code was executed and the esp was just reseting in a loop. I've tried everything from changing the power supply, flashing bigger code, small blink example, adding capacitor, ... nothing had worked.

But I then succeed to bring the esp back to life thanks to this command:
python esptool.py --port COM5 --baud 76800 erase_flash

It seems that esptool.exe is not capable of doing this, here are the instruction for windows user:
-install Python 2.7 (2.7.9 I believe in my case), do not use Python 3.x, there seems to be some problem.
-download esptool.py https://github.com/themadinventor/esptool and put it in a local directory
-open a terminal in the directory where esptool.py is located
-run the command ( change the port according to your serial COM port)
Code: Select allpython esptool.py --port COM5 --baud 76800 erase_flash

-You should now be able to flash and use your ESP as before (I use Arduino IDE to flash it, and had reflash at least 40 or 50 times without success before using this flash erase technique).

Source: https://github.com/esp8266/Arduino/issu ... t-96399149

I hope you'll be able to play with your ESP again thanks to that :D