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

Compact flash memory

Hi all, I am trying to store some data in compact flash memory card. Directory creation, File creation and writing data into file is working fine. But i want to know the available free memory of the card.
I tried to subtract file size from total size of the card but it is not working.

Parents
  • Adding file sizes requires that you round upwards to full cluster sizes. And the same thing is needed for directories.

    Best is always if there is a function to report the number of free blocks on the device. I don't have the kit with the FS, so I don't have access to the Keil manuals.

Reply
  • Adding file sizes requires that you round upwards to full cluster sizes. And the same thing is needed for directories.

    Best is always if there is a function to report the number of free blocks on the device. I don't have the kit with the FS, so I don't have access to the Keil manuals.

Children