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

spi_nand_flash: don't break the loop on erase fail #13

Merged
merged 1 commit into from
Jul 18, 2021

Conversation

Leo-PL
Copy link
Contributor

@Leo-PL Leo-PL commented Jul 18, 2021

NAND flash memories are allowed to contain some bad blocks, which fail
to write or fail to erase. Currently, chip erase operation breaks on
first failed block, leaving the rest of memory untouched. So, to do full
chip erase with failed blocks, manual fiddling with addresses is needed.

To avoid that, don't break the loop on erase fail, but keep the final
error status.

NAND flash memories are allowed to contain some bad blocks, which fail
to write or fail to erase. Currently, chip erase operation breaks on
first failed block, leaving the rest of memory untouched. So, to do full
chip erase with failed blocks, manual fiddling with addresses is needed.

To avoid that, don't break the loop on erase fail, but keep the final
error status.
@McMCCRU McMCCRU merged commit 1236378 into McMCCRU:main Jul 18, 2021
@McMCCRU
Copy link
Owner

McMCCRU commented Jul 18, 2021

Hi! In principle, it is logical to continue erasing process if a bad block is caught. I accept your fix.

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