FS_GetVolumeFreeSpace() not updated immediately

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • FS_GetVolumeFreeSpace() not updated immediately

    Hello,

    I'm evaluating emFile with STM32F4 and IAR compiler. In my project I'm using USB to mount nand flash and display new files after USB is ejected.
    However, I found FS_GetVolumeFreeSpace() didn't give me the newest free space after some files are created or deleted, in my case there are only two ways to get the actual free space:
    1.Reset the MCU, so the file system is also reinitialized.
    2.Format the flash, it gives the correct space.

    Anyway to solve this?

    Thanks,