Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
GHIElectronics.com
Home
Help
Search
Login
Register
GHI Electronics LLC
>
FAT File System Chipsets and OEM Boards
>
General Discussion
>
GHI FATFS DirEntry problem
Pages: [
1
]
« previous
next »
Print
Author
Topic: GHI FATFS DirEntry problem (Read 676 times)
ppetkov
Newbie
Posts: 2
GHI FATFS DirEntry problem
«
on:
February 13, 2010, 03:53:36 AM »
Hi there,
Some time ago we bought GHI FATFS file system. We use the file system in our data collection system, embedded in a measurement device.
I have the following problem:
Our data collection system creates temporary file after each measurement. The measurement cycle is approx 40 seconds. When the user start next measurement the system deletes this temporary file.
FAT_DeleteFile() procedure are freeing file clusters and put name[0] = 0xE5; (ENTRY_FREE).
The main problem is that when we use FAT_OpenFile() procedure ( in case the file name not exist in current directory) the file system not use already deleted entries and creates new entry. This way the list of entryes becomes very long and our data collection system works very slowly.
Can someone help me?
«
Last Edit: February 13, 2010, 01:15:40 PM by ppetkov
»
Logged
GHI_Support
Administrator
Hero Member
Posts: 1252
Re: GHI FATFS DirEntry problem
«
Reply #1 on:
February 15, 2010, 10:09:05 AM »
I am not sure how it works or if this is true but you can split files in several folders. This is much better even if you do not delete any files. It would be faster.
Also, you can make this temporary file, a permanent one with system attribute...
Deleting and creating files can cause fragmentation which will make it slower.
Logged
ppetkov
Newbie
Posts: 2
Re: GHI FATFS DirEntry problem
«
Reply #2 on:
February 15, 2010, 10:17:13 AM »
Thank you very much. I'll send you personal message with details.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
.NET Micro Framework Devices
-----------------------------
=> General Discussion
=> ChipworkX
=> EMX
=> Embedded Master
=> USBizi
-----------------------------
FAT File System Chipsets and OEM Boards
-----------------------------
=> General Discussion
=> uALFAT
=> USBwiz
Loading...