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.
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
- Even when using the
- 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.
A nix flake is available to ease development and dependencies for the examples.
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.