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.
I am getting free space available if entered into any directory. When I given command being in root directory I am unable to access the size of file present in other directories. And I am getting the size of all files present in root directory. Finally I am unable to get total utilized space.
Clear explanation of what?
Thanks for your response. can i have some clear explanation
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.
View all questions in Keil forum