Skip to content

Conversation

igrr
Copy link
Member

@igrr igrr commented Sep 22, 2017

SDK uses final 4 sectors of flash for configuration data.
ESP.eraseConfig would only erase 2 sectors, so in some cases of
corrupted data ("system param error"), users could not fix the issue
using ESP.eraseConfig, and had to use esptool instead.

Thanks @HugoML for reporting this.

SDK uses final 4 sectors of flash for configuration data.
ESP.eraseConfig would only erase 2 sectors, so in some cases of
corrupted data ("system param error"), users could not fix the issue
using ESP.eraseConfig, and had to use esptool instead.

Thanks @HugoML for reporting this.
@igrr igrr force-pushed the bugfix/esp_erase_config branch from 5ff18ea to f69f98e Compare September 22, 2017 09:00
@igrr igrr merged commit 80aeacf into master Oct 15, 2017
@igrr igrr deleted the bugfix/esp_erase_config branch October 15, 2017 07:02
@tablatronix
Copy link
Contributor

tablatronix commented Oct 29, 2017

What is stored in first 2 sectors(first or last?) Because I cannot see any effect from eraseConfig at all in 1.5.3, or at least I see no change in opmode_default or STA SSID, password.

However, This patch seems to work for 2_3_0/1.5.3, not sure how one would do semantic version comparisons to polyfill it, hmm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants