how can reset flash by any key goip in esp8266

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
amin233
New user
Posts: 2
Joined: 19 Jul 2016, 13:32

how can reset flash by any key goip in esp8266

#1 Post by amin233 » 01 Aug 2016, 00:38

hi
how can reset or clean flash and history config in esp8266-12 by any input key from gpio pin ،For example to 30 second
Of course, without changing or delete the main Firmware
.like change config in adsl modem
can i put any jumper or key in electrical circuit at esp8266 for this job?
thanks

Martinus

Re: how can reset flash by any key goip in esp8266

#2 Post by Martinus » 03 Aug 2016, 18:14

As long as ESP Easy still boots, you can connect RX with TX pins during boot to perform a "factory reset" of the ESP Easy settings.
After reset, disconnect the loop wire and it should boot as if it was just flashed with firmware.

If things get corrupt in such a way that ESP Easy does no longer boot, this will not help. Reflashing ESP easy may also not help out as is does not wipe the entire flash chip (only the space occupied by the firmware, approx. 400kB). ESP Easy configuration settings are stored in a different area in flash and they will remain untouched if a new sketch is loaded.

Worst case you have to erase the entire flash chip with a capable tool like esptool.py and reflash with any firmware you like.

AFAIK the ESP8266 build-in ROM bootloader does not have a flash erase feature (or it's not documented...)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 14 guests