It's very slow to Open FileSystem on NAND with FileX/LevelX

Xiaofeng Lei 0 Reputation points
2023-08-30T19:33:34.99+00:00

Hi,

We're working on STM32H743 chipset with Azure RTOS ThreadX, and using FileX/LevelX to establish the Fat FS on the NAND connected with QSPI interface. Basically it's working fine, but it takes more than 1 minutes to open the FS on bootup time. I did some debugging, and found that it's trying to validate every sector when the FS is opening. Is this necessary or there is some way for optimization?

Here are some information about the NAND:

  1. ThreadX/FileX/LevelX: 6.1.12
  2. No any option specified in fx_user.h and lx_user.h
  3. NAND: 4Gb tc58cv

I uploaded the nand driver (I have to combine the driver for fx and lx together) we migrated from the example for FileX and LevelX FYI.

Any feedback will be appreciated.

fx_nand_flash_driver.c.txt

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.