Wednesday, November 22nd 2017, 7:24pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

pasnew

Beginner

Date of registration: May 13th 2015

Posts: 6

1

Wednesday, May 13th 2015, 6:05pm

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,

Date of registration: Apr 8th 2015

Posts: 8

Location: Darmstadt, Germany

Occupation: Software Developer

2

Tuesday, June 16th 2015, 2:05pm

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