This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fflush in flashFS doesn't work

Hi
there is a kind of problem that made me crazy

in flashFS I tried to use fflush but it doesn't work at all, it always get zero as response but till fclose nothing will saved on memory card. is it in this way or something is wrong.

I need to save data before closing to prevent file corruptions but with this problem I should use flose all the time and it's too slow for me.

I think FAT table will be updated with fflush but size of header file will not be update. I such a way file size is always 0 bytes but used memory in FAT properties will be increased and all the things make memory card corrupted and should be format or checkdisk can solve it but it's not usual remedy.

Is there any solution to save data without need to closure?

I'm using LPC2378, 16GB SDHC and 2GB SD card

thank you