Skip to content

xgroleau/mx25r-rs

Repository files navigation

mx25r-rs

Platform-agnostic Rust driver for the macronix MX25R NOR flash using the embedded-hal.

This driver implements all the commands available to the MX25R chip series, but qspi is not supported yet. Note that the drivers are low level to allow the user to write custom implementation for its needs.

Usage

You can see an example of the usage for the nRF52840-DK in the examples directory. For now only a blocking API is available.

Things to consider when using the driver crate

  • Enable write before erasing sector/block/chip or writing data to the memory
    • Even when using the embedded_storage NorFlash trait
  • Poll the wip bit before read/write/erase operation, if not the request will be ignored
  • write_security_register is not a reversable operation, make sure to read the datasheet.

Nix

A nix flake is available to ease development and dependencies for the examples.

License

Licensed under either of

at your option.

About

Driver for the MX25R chip

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published