This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fopen and ffind fail after numerous successes

Hi

I am using keil realview with keil's RTL and flashfs and appear to be hitting a limit in the filing system that I can't find any referance to in documentation or online.

My program repeated opens a file for read gets data and then closes the file which appear to work perfectly for 64* attempted accesses then ffind returns none zero and fopen returns NULL although the keil debug (peripherals-rtx kernel-FS tab) stay the file exist and is closed. after a reset fopen and ffind work with this file once again.

*(appoximately 64)

Has anyone else come up again this problem?

I will continue to attempt to determine the cause and try a small program to get more details and post back.

Thanks
Luke

Parents
  • I'll been unable to reproduce this error with a small test program so must assume it is a bug in my main code! most problably leaving files open even if the debugger claims they are all closed.
    ...
    could it be repeated attempts to open a file that doesn't exist - i'm just clutching at straws now :-)

Reply
  • I'll been unable to reproduce this error with a small test program so must assume it is a bug in my main code! most problably leaving files open even if the debugger claims they are all closed.
    ...
    could it be repeated attempts to open a file that doesn't exist - i'm just clutching at straws now :-)

Children
No data