Thursday, September 21st 2017, 10:40am UTC+2

You are not logged in.

  • Login
  • Register

uLipe

Beginner

Date of registration: Apr 8th 2015

Posts: 5

1

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

1
2
3
4
5
 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.

Felipe.

SEGGER - Marius

Super Moderator

Date of registration: Aug 10th 2011

Posts: 28

2

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,
Marius

uLipe

Beginner

Date of registration: Apr 8th 2015

Posts: 5

3

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.

Felipe

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


Similar threads