Hi... I have a working program that will write data to a text file.
I want to write out to the text file every second.
Everything works until........ I try to write more than 12 times. Then only a few bits of data are written to the file. See loopcounter < 12 in the code section.
I have rewritten the program several times thinking that I'm hitting some kind of limit.
Is there a limit as to how much can be written to the file? or number of writes to the same file?
The program uses a ds1309 - but you can just as well take out all the associated code and just do static writes (of the same string, e.g., 12313232323) to the module. You will see the same think happen - at some point the data no longer writes correctly to the disk.
I have included a read back at the end of the process so you don't have to eject the drive to see what has been written.
I would really appreciate the help....
Here is the output:
********************************************
<Response> Bad Command
<Sent> Check Drive
<Response> E
<Delete> Delete file
<Response> D:\>
<Sent> Open file
<Response> D:\>
<Send> write to file
<Sent> Close file
<Response> D:\>
<Read> Read file
<Response> 03:14:37
03:14:39
03:14:41
03:14:43
03:14:45
03:14:47
03:14:49
03:14:51
03:14:53
03:14:55
03:14:57
03:14:58
D:\>
<Status> All Done
I want to write out to the text file every second.
Everything works until........ I try to write more than 12 times. Then only a few bits of data are written to the file. See loopcounter < 12 in the code section.
I have rewritten the program several times thinking that I'm hitting some kind of limit.
Is there a limit as to how much can be written to the file? or number of writes to the same file?
The program uses a ds1309 - but you can just as well take out all the associated code and just do static writes (of the same string, e.g., 12313232323) to the module. You will see the same think happen - at some point the data no longer writes correctly to the disk.
I have included a read back at the end of the process so you don't have to eject the drive to see what has been written.
I would really appreciate the help....
Here is the output:
********************************************
<Response> Bad Command
<Sent> Check Drive
<Response> E
<Delete> Delete file
<Response> D:\>
<Sent> Open file
<Response> D:\>
<Send> write to file
<Sent> Close file
<Response> D:\>
<Read> Read file
<Response> 03:14:37
03:14:39
03:14:41
03:14:43
03:14:45
03:14:47
03:14:49
03:14:51
03:14:53
03:14:55
03:14:57
03:14:58
D:\>
<Status> All Done
Attachments
-
7.7 KB Views: 20