Wednesday, May 23rd 2018, 1:05pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Apr 8th 2015

Posts: 5


Friday, September 11th 2015, 8:56pm

Multiple file descriptors.

Hello there, I having some troubles during my evaluation of emFile for LPC1788 chip.

I´m implementing a system with make exaustive use of FS, and sometimes will have cases when multiple files are open (so, multiple file descriptors), so when I try to open two or more different files without a call of FS_FClose(), only the first file is opened, all others file descriptors returns as a null pointers.

for exemple:

C/C++ Source code

 FS_FILE *fp1, *fp2, *fp3;

 fp1 = FS_FOpen("blablabla1.txt", "r"); //returns a pointer to file pointer
 fp2 = FS_FOpen("blablabla2.txt", "r"); //returns null
 fp3 = FS_FOpen("blablabla3.txt", "r"); //returns null

We are using the emFile v3.34 trial version. Is this a kind of limitation? Or emFile definitively doesn´t support multiple file descriptors.

Thanks in advance.


SEGGER - Marius

Super Moderator

Date of registration: Aug 10th 2011

Posts: 32


Monday, September 14th 2015, 3:42pm

Hello Felipe,

In the trial version of emFile you are limited to 2 files opened at the same time.
In the licensed version of emFile the number of files opened at the same time
is limited only by the amount of memory available to file system.

Best regards,



Date of registration: Apr 8th 2015

Posts: 5


Friday, September 18th 2015, 7:12pm

Hello Marius, thanks for the fast response.

Okay, is a limitation, but In my version opens one file at time, but not two.

So I´ll contact my purchasing dept. in order to resolve this licensing issue fast as possible.

Best Regards.


This post has been edited 1 times, last edit by "uLipe" (Sep 18th 2015, 7:15pm)

Similar threads