Issue with QSPI NAND Flash FILEX Driver Integration on STM32F469 (Azure RTOS)
Hello,
I am working on a project using an STM32F469 microcontroller, and I'm trying to interface a W25N01GV NAND flash memory over QSPI. I’m currently facing issues during the format phase while using FileX with LevelX NAND driver.
following is the configuration used while formatting:
/* Format the NAND flash as FAT */
status = fx_media_format(&nand_flash_disk,
fx_stm32_levelx_nand_driver, /* Driver entry */
(VOID *)CUSTOM_DRIVER_ID, /* NAND disk memory pointer */
media_memory, /* Media buffer pointer */
sizeof(media_memory), /* Media buffer size */
"NAND_FLASH_DISK", /* Volume Name */
1, /* Number of FATs */
32, /* Directory Entries */
0, /* Hidden sectors */
65536, /* Total sectors */
2048, /* Sector size */
1, /* Sectors per cluster */
1, /* Heads */
1); /* Sectors per track */
1) The QSPI initialization seems to work fine, and I can read the flash ID: EFAA21 successfully.
2) When attempting to format the NAND flash using fx_media_format, the process fails with errors indicating that no new pages can be allocated (LX_NO_SECTORS and LX_SECTOR_NOT_FOUND).
The software components I have selected in Azure RTOS are as shown in the image:

I also doubt if my implementation of W25NXX_Read_Spare_Area and W25NXX_Write_Spare_Area under lx_nand_driver_extra_bytes_get/ lx_nand_driver_extra_bytes_set.
Please help me in solving this issue. There are no examples available with SPI/QSPI NAND Flash. I have attached my custom driver and W25N C implementation files for reference.
I really appreciate any help you can provide.
