Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround for bug in SPIEraseArea #53

Merged
merged 1 commit into from
Aug 30, 2015
Merged

workaround for bug in SPIEraseArea #53

merged 1 commit into from
Aug 30, 2015

Conversation

jkent
Copy link
Contributor

@jkent jkent commented Jul 8, 2015

This is a cleaner rewrite of the code in bug #33 by iggr. Also added a fake flash_begin so flash_finish returns sucessfully. See also #48 and #51.

This is a cleaner rewrite of the code in bug #33 by iggr.  Also added a
fake flash_begin so flash_finish returns sucessfully.
@jkent
Copy link
Contributor Author

jkent commented Jul 8, 2015

I'm curious if the behavior for DIO from #52 should actually be used as the default?

@imax9000
Copy link

FYI, I did some analysis on how and why this fix works: https://cesanta.com/blog/esp8266-flash-erasing-issue.shtml

@flyashi
Copy link

flyashi commented Aug 4, 2015

After debugging for hours, this solved my issue. Please accept this pull request and save future me's the hassle!

@jkent
Copy link
Contributor Author

jkent commented Aug 29, 2015

@themadinventor poke

@projectgus projectgus merged commit 0e67846 into espressif:master Aug 30, 2015
projectgus added a commit that referenced this pull request Sep 2, 2015
Float argument strayed into flash_begin() size, caused erase sizes to be
calculated as too long. This triggered an error when writing near the end of
the flash, it would ask for erasing beyond the end of available space.

Closes #60
@jkent jkent deleted the erase_fix branch September 28, 2015 02:44
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.

None yet

4 participants