2019-12-17 10:01 PM
what i noticed is if i create n no of files, only 8 files are displayed however the remaining files are also created but not displayed, i am using elm chans fatfs. What could be the problem
why only first 8 files displayed on pc .Kindly let me know a solution for this problem.
f_mount(&USERFatFS,"",0);
f_open(&USERFile,"file1.TXT",FA_CREATE_NEW | FA_WRITE|FA_READ);
for(int i = 0 ; i< 10;i++)
f_printf(&USERFile, "%s","hello");
f_close(&USERFile);
f_mount(&USERFatFS,"",0);
f_open(&USERFile,"file2.TXT",FA_CREATE_NEW | FA_WRITE|FA_READ);
for(int i = 0 ; i< 10;i++)
f_printf(&USERFile, "%s","hello");
f_close(&USERFile);
f_mount(&USERFatFS,"",0);
f_open(&USERFile,"file3.TXT",FA_CREATE_NEW | FA_WRITE|FA_READ);
for(int i = 0 ; i< 10;i++)
f_printf(&USERFile, "%s","hello");
f_close(&USERFile);
f_mount(&USERFatFS,"",0);
f_open(&USERFile,"file4.TXT",FA_CREATE_NEW | FA_WRITE|FA_READ);
for(int i = 0 ; i< 10;i++)
f_printf(&USERFile, "%s","hello");
f_close(&USERFile);
.
.
.
.
file10.TXT
only files 1 to 8 detected on pc .
Thanks in advance.
2019-12-17 10:58 PM
I suspect that the directory entries are not updated on the drive immediately. Try unmounting the drive after closing the last file.
f_mount(0,"",0);
2019-12-18 03:36 AM
Hi , thanks for the reply i even tried unmounting the drive using f_mount(0,"",0); after every f_close , the problem still persists. The files are not detected by
desktop.