This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Limit on number of fopen in CCS?

Other Parts Discussed in Thread: SYSBIOS

Hi,

Sorry to post on an old thread, but it seems that this thread has already dealt with my issue, so seems like a good place to post. I am using the C6748 BIOS PSP MMCSD driver to write data to SD card. I need to write to 30+ separate files, so I need to modify some STDIO library #defines as described above. I have done this and rebuilt the RTS6740_elf.lib with _NFILE = FOPEN_MAX = 40 and also _NSTREAM = 40  file so that I should be able to open 30+ files. Here is the pseudo code I'm using: 

for (i=0-NUM_FILES)

{

sprintf (filename[i], "fat:1:Stream%d.bin", i);

pFile[i] = fopen(filename[i], "wb");

}

If I set the file name to fat:0:Stream%d.bin, it will open 30+ binary files in the same directory as the program binary files (.xe674 / .out files). I want to write to SD card though, so I need to specify the file as fat:1:Stream%d.bin; the :1: in the path seems to identify the SD drive. When I try this, I can only ever open 10 files and then it fails when attempting to open the 11th file. I can't see any MAX open files restriction in the MMCSD driver code, but this issue seems to be unique to opening files on the SD card. 

Has anyone seen this behavior before?

Thanks

Brian