-->
Page 3 of 4

Re: Crash immediately after boot

PostPosted: Mon Aug 31, 2015 10:12 pm
by rith87
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?

Re: Crash immediately after boot

PostPosted: Wed Sep 02, 2015 9:57 pm
by rith87
Actually, @everyone, how do you folks do a full firmware flash? Does my esptool command line work for the non fota scenario?

Re: Crash immediately after boot

PostPosted: Thu Sep 03, 2015 5:19 am
by Touliloup
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

Re: Crash immediately after boot

PostPosted: Fri Sep 11, 2015 9:32 pm
by failing
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