On my custom board has QSPi flash for which I have to read / write via FatFS file system.
So, I'm trying to combine fsl_flexspi_nor_flash.c with FatFS diskio.c with reference to sdcard_fatfs of "SDK_2.7.0_EVK-MIMXRT1060".
However, I realized that f_mkdir failed, and that these were not enough to update certain pages.
Are there any SDKs or documentation available to help you update a specific page in a sector of Nor Flash memory?
Or tell me if there is another good way.
DRESULT nor_disk_write(uint8_t physicalDrive, const uint8_t *buffer, uint32_t sector, uint8_t count)
assert(count == 1U);
if (physicalDrive != NORDISK)
/* Write according to fatfs sector size */
for(writeCount = 0; writeCount < FF_MAX_SS / nor_Handle.bytesInPageSize; writeCount++)
if (Nor_Flash_Page_Program(&nor_Handle, (sector * FF_MAX_SS) + ( nor_Handle.bytesInPageSize * writeCount ), buffer + (nor_Handle.bytesInPageSize * writeCount)) < 0)
SDK Version :2.7.0 (released 2019-12-19)
Host OS :Windows
Toolchain :IAR Embedded Workbench for ARM
Middleware :FatFS, sdmmc stack