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

RAM flash driver emulator #7403

Closed
nvlsianpu opened this issue May 8, 2018 · 3 comments
Closed

RAM flash driver emulator #7403

nvlsianpu opened this issue May 8, 2018 · 3 comments
Assignees
Labels
area: Flash area: Tests Issues related to a particular existing or missing test Feature A planned feature with a milestone In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on

Comments

@nvlsianpu
Copy link
Collaborator

Such driver will be useful for testing modules which extensively use the flash driver. It will be possible to emulate flash driver functionality for qemu as well.
the driver configuration should allow to configure:

  • erase block size
  • write block size
  • size of emulated flash
  • absolute offset of emulated flash

and optionally:

  • erase time duration
  • write time duration

Something which can be a prototype for such a driver is implemented for NFFS tests (e.g. tests/subsys/fs/nffs_fs_api/src/test_ram_backend.c)

@nvlsianpu nvlsianpu added area: Flash area: Tests Issues related to a particular existing or missing test labels May 8, 2018
@nvlsianpu
Copy link
Collaborator Author

@carlescufi @pizi-nordic

@carlescufi carlescufi added the Feature Request A request for a new feature label May 8, 2018
@pizi-nordic
Copy link
Collaborator

I would add some features allowing to test rainy day scenarios:

  • Ability to generate random failures of read/write/erase operations at given probability (such feature will allow to easily check error handling in subsystems built on top of flash storage).
  • Ability to emulate typical flash failures (stuck bit, random inversion on read etc). This feature will be important for devices with expected long operation or when NAND flash will be used for a storage.

@nvlsianpu nvlsianpu self-assigned this May 25, 2018
@nvlsianpu nvlsianpu added the In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on label May 25, 2018
@nashif nashif added Feature A planned feature with a milestone and removed Feature Request A request for a new feature labels May 22, 2019
@nashif
Copy link
Member

nashif commented May 22, 2019

already implemented

@nashif nashif closed this as completed May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Flash area: Tests Issues related to a particular existing or missing test Feature A planned feature with a milestone In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on
Projects
None yet
Development

No branches or pull requests

5 participants