Skip to content

reduce write cycles to flash#332

Merged
DocMoebiuz merged 3 commits intoMobiFlight:mainfrom
elral:reduce_commits
Sep 5, 2024
Merged

reduce write cycles to flash#332
DocMoebiuz merged 3 commits intoMobiFlight:mainfrom
elral:reduce_commits

Conversation

@elral
Copy link
Collaborator

@elral elral commented Aug 28, 2024

Description of changes

The Raspberry Pico board has no internal or external EEPROM. Data which must be stored is using an EEPROM emulation. First all datas are moved to an internal buffer which can be commited to the flash memory.
For now each write command to the EEPROM emulation gets directly commited which leads to a number a flash writes.

This PR adds a function commit() which is only called when all parts of a config and the name is written to the buffer. This reduces the write cycles to the internal flash memory.

Fixes #331

@elral elral requested a review from DocMoebiuz as a code owner August 28, 2024 07:30
@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

github-actions bot commented Sep 5, 2024

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@DocMoebiuz DocMoebiuz merged commit 5967300 into MobiFlight:main Sep 5, 2024
@elral elral deleted the reduce_commits branch September 5, 2024 08:43
@DocMoebiuz DocMoebiuz added the enhancement New feature or request label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pico - multiple write cycles to flash memory

2 participants