Skip to content

Purpose of aSwapIndex for flash platform functions #9872

Answered by jwhui
atar13 asked this question in Q&A
Discussion options

You must be logged in to vote

Flash storage typically performs erase operations on units of pages. To support atomic updates to settings in non-volatiles storage with flash, we switch between different swap spaces on flash by writing new data to a different page and then updating the pointer to the latest page. The swap index indicates which swap space to use.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by atar13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants