File system about read filename
Hi,
I used bf548 to read SD card's filename.
The additional DMV.7z, Decompress it, then copy DMV1000 directory to SD card.
I used this codes to read this DMV1000 directory's files:
void SDCARD_TEST(void)
{
struct dirent *pDirEntry = NULL;
DIR *pDir = NULL;
while(chdir("..") == 0) ; // go to root
chdir("DMV1000");
pDir = opendir(".");
if(pDir != NULL)
{
do
{
pDirEntry = readdir(pDir);
if (pDirEntry != NULL)
{
printf("\n%s", pDirEntry->d_name);
}
} while (pDirEntry);
}
closedir(pDir);
}
It only get ".","..", and "P040" directory name,but can not get DSP 94.txt, MCU 146.txt filenames.
blackfin
Hi
I have added your code to the BF548 shell_browser example (Update 9) and I have not been able to reproduce the problem for a 2GB FAT16 and 2GB FAT32 cards. Please check that your version of these files are not marked as "hidden".
If you need further assistance, please confirm the application, the version of VisualDSP++ 5.0 and the size and format (FAT16/FAT32) of the SD card. The revision and BOM Rev of the EZ-KIT you are using would also be helpful.
Best regards
Martin
Dear Martink,
Thanks your help,again.
I Update to "Update 9",this issue is fixed.
Best regards
Weiyu
Please log in to reply.