This library/driver can easily be used for other Microcontrollers with very less modifications. Integration of file system such as littlfs and smartfs is also possible with minimal modifications. Example implementaion code available in Core/Src/main.c. Library implememtation available at Core/Src/MT25QL.c.
Please Read the MT24QL01 Flash Memory Datasheet before using the library for easy use.
Please make sure commands from datasheet match the commands defined in MT25QL01.h, Commands differ for different part numbers.
- Make sure you assign correct SPI to Flash Memory Functions
-
Be sure to assign Debug UART to seee the debug messages or comment out the myprintf functions to remove debug messages
- assign proper UART to DEBUG_STREAM definition
- Assign correct Chip Select line for corresponding SPI line. Make changes to FM_Enable() and FM_Disable() functions.
- Erase the corresponding sector/subsector of Flash Memory before rewriting. Read datasheet properly for easy use.