FAT and FTP_SERVER

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello.

I would like to log to SD card some data. Application should work in RTOS environment.
So I opened file once in thread initiation section and then I wrote to the already opened file every let say 1 second
in thread body. So I had not to open the file and seek to its end every time. I excepted to be quicker.

It works, but when I add FTP_SERVER, there was a problem that servers did not work correctly (I was able to see only directories, not files).
When I closed the file every time after writing and opened it again before writing, the FTP_SERVER seems to work normally.

Is there any other solution for simultaneous access to file system from user application and FTP_SERVER?

Vladimír.
0 Likes
3 Replies
Not applicable
you can use lock.
0 Likes
Not applicable
shenj wrote:
you can use lock.


Could you be a little bit more specific?
Thanks.
0 Likes
Not applicable
hi Vladimir,

I had a similary problem. I could only open one fille at a time.

I solved it by changing "File Sharing Configuratuion" in AppDependency/FATFS/AdvancedSettings from 1 to 4.

best regards
torsten
0 Likes