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,
  • Hi,

    since reboot helps, I would assume that unmount - mount will as well.
    But this still sounds to be to drastic.

    Without any deeper knowledge, I would recommend using one or multiple of the XY_SYNC_XY functions.
    They seem to exist in at least four different tastes ;)

    Good luck
    Stefan