-->
Page 1 of 1

Esp8266 how to clear all memory before upload firmware ?

PostPosted: Thu Jun 18, 2015 4:44 am
by AlainP
Hi !
I'm new in ESP8266.
I test some firmware (nodemcu, nodelua, at...) ans now my esp can't connect to my AP (it didn't see my AP but it see all other AP around me).

So, how to reset all memory before install the last firmware ?

any idea ?

Re: Esp8266 how to clear all memory before upload firmware ?

PostPosted: Thu Jun 18, 2015 3:48 pm
by tytower
When you reflash the device it overwrites everything in there AFAIK

Re: Esp8266 how to clear all memory before upload firmware ?

PostPosted: Fri Jun 19, 2015 5:16 pm
by cal
Moin,

Either make sure
- you burn a firmware image covering most of the flash
- burn blank512k.bin at different offsets according to the size of your flash
- use esptool.py which has an erase parameter and write whole flash

But for e.g. esp 01 wifi config seems to 8 (16?) K at 0x7e000. Erasing that should be enough.

Cal