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

Parents
  • Hi

    I said this is my problem and I can't fix it too.

    I don't know why, in this forum you can't fix your problem at all, we have a lot of person that they like fighting and insulting to questioners and I don't know where are they... at least bother me

    if you can find how to write and read sector in rl-arm I hope that I could fix it because this is my thesis

    but I tried to read and write sector but I can't do it. I've used all the ways which mentioned in keil website (ioc, readblock and etc.)

    if you find it I'll do it

    Good Luck

Reply
  • Hi

    I said this is my problem and I can't fix it too.

    I don't know why, in this forum you can't fix your problem at all, we have a lot of person that they like fighting and insulting to questioners and I don't know where are they... at least bother me

    if you can find how to write and read sector in rl-arm I hope that I could fix it because this is my thesis

    but I tried to read and write sector but I can't do it. I've used all the ways which mentioned in keil website (ioc, readblock and etc.)

    if you find it I'll do it

    Good Luck

Children
No data