This library provides extended support for Macronix flash ICs in Mbed OS. It provides two block device drivers which can be used by the application.
MX25R_QSPIFBlockDevice provides an extended version of QSPIFBlockDevice which adds an additional method for controlling the power management features of MX25R family QSPI NOR flashes (e.g. MX25R6435F).
MX3x_SPINANDBlockDevice provides a block device driver for Macronix MX31 and MX35 family QSPI NAND flashes. This driver includes support for both software and hardware ECC, and will make use of ECC on the host side as needed by the flash device.
- Create a new project according to MbedCE instructions
- Add this as submodule to your project via
git submodule add https://github.com/mbed-ce-libraries-examples/MacronixFlash
- The top level
CMakeLists.txt
(in root of your project) should be modified to addadd_subdirectory(MacronixFlash)
after theproject(...)
line. - Link the
MacronixFlash
library to the code for your application. - You can now include the headers and instantate the classes in this library!
Library has been converted from PRs by Macronix (1) (2) into its own repo. This code has not been tested on real hardware, but the original version was by Macronix.