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

Block all tasks (not interrupts) during flash erase #3780

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Dec 2, 2020

Otherwise we risk running code from flash while an erase is in
progress, crashing and corrupting the file system.

Related to #3744

Otherwise we risk running code from flash while an erase is in
progress, crashing and corrupting the file system.

Related to micropython#3744
@tannewt tannewt added the espressif applies to multiple Espressif chips label Dec 2, 2020
@tannewt tannewt added this to the 6.1.0 milestone Dec 2, 2020
@tannewt tannewt requested a review from jepler December 2, 2020 02:19
@ladyada
Copy link
Member

ladyada commented Dec 2, 2020

ill try out artifacts when ready

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good based on the documentation. Doing a websearch on CONFIG_SPI_FLASH_YIELD_DURING_ERASE, I see that OTA update with it turned off could cause IDF 3.x watchdog triggers, e.g. espressif/esp-idf#4916

@dhalbert dhalbert merged commit 31acfed into adafruit:main Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
espressif applies to multiple Espressif chips
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants