Skip to content

Add support for partial flash erase#385

Open
arturkow2000 wants to merge 1 commit into
nrf-rs:masterfrom
fobnail:support_partial_page_erase
Open

Add support for partial flash erase#385
arturkow2000 wants to merge 1 commit into
nrf-rs:masterfrom
fobnail:support_partial_page_erase

Conversation

@arturkow2000

Copy link
Copy Markdown

Partial erase is a feature that allows to reduce time CPU is halted when
using NVMC. It works by dividing page erase operation into multiple
operations, in-between each operation CPU is resumed allowing interrupt
handling.

Erasing a single page takes 85 ms on nRF52840, during write CPU can't handle interrupts,
this may result, e.g. in broken USB, especially if erase happens during enumeration.

This code has been tested on nRF52840 by zeroing page, erasing it and checking whether all bits are back to 1.

Partial erase is a feature that allows to reduce time CPU is halted when
using NVMC. It works by dividing page erase operation into multiple
operations, in-between each operation CPU is resumed allowing interrupt
handling.
@arturkow2000 arturkow2000 force-pushed the support_partial_page_erase branch from e5370c6 to cae8c11 Compare March 29, 2022 14:39

@krystian-hebel krystian-hebel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested on nRF52840, but must be made to work for other SoCs.

@qwandor

qwandor commented May 23, 2024

Copy link
Copy Markdown
Member

This seems like a good idea! Can you rebase it on top of the latest master? Is there any difference between different chips that we need to handle before merging this?

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.

3 participants