We are using RL-USB and RL-FlashFS and ffree function to check the space availabe on the USB drive. With one 4GB drive with free space of 3.37GB, it reports proper free space ie. 0x0d7fad000 But for another 4GB USB Drive with free space of 767MB, it is reporting free space as 0x12000. We have checked the drive with chkdsk command on windows and there are no errors reported. We would like to know what could be the reason of incorrect free space returned by ffree function.
What exactly model of Sandisk USB drive is it? If you reformat the Sandisk in Windows does it again shoe on embedded device incorrect free size?
It is SanDisk Cruzer Micro 4.0GB.
Zip up the image file, and post it to a hosting site of your choice, Drop Box, Google Drive, whatever, not a complicated thing to do.
This will save all guessing about the state of the file system, and why it's reporting the way it is. Reformatting might make the problem change, but the point would be to understand WHY it's failing now, whether it's an issue with the software, or structures on the media.
Make sure there isn't any loss of precision moving from 64 or 32-bits, or in math done with the numbers.