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

Added s25fs device #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ramonaerne
Copy link

Added s25fs device

This is almost identical to the s25fl devices with the following exceptions

  • sector size is 256K not 64K
  • subsector (4K) erase is only possible in the parameter section which is the low 32K or high 32K of the device
  • some workaround is need in case a sector overlapping the parameter section is selected as we additionally need to erase the param section

To achieve this

  • erase is overwritten and erases the param section before doing a sector erase that overlaps the param section
  • can_erase is overwritten to check if an erase is requested in the param section otherwise only sector erases are allowed

This is almost identical to the s25fl devices with the following
exceptions
* sector size is 256K not 64K
* subsector (4K) erase is only possible in the parameter section
  which is the low 32K or high 32K of the device
* some workaround is need in case a sector overlapping the
  parameter section is selected as we additionally need to erase
  the param section

To achieve this
* erase is overwritten and erases the param section before doing
  a sector erase that overlaps the param section
* can_erase is overwritten to check if an erase is requested in
  the param section otherwise only sector erases are allowed
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.

1 participant