Code: Select all
FR_LOCKED, /* (16) The operation is rejected according to the file sharing policy */
Can anyone tell me how I keep _FS_LOCK is 10 and work well with file?, like in IDF 2.0. I dont know what were changed in IDF 3.0?
Code: Select all
FR_LOCKED, /* (16) The operation is rejected according to the file sharing policy */
my _FS_LOCK is 10 (and even I changed it into 100), does it still mean "two operations on the same file" causes that error (or it should be 10)?This error indicates that your program is performing two operations on the same file in parallel.
is there any way to check that I am opening the same file twice?does the application actually open the same file twice, or tries to do something with a file (rename, copy, etc) while it is open
thanks, I willYou can figure out whether you have concurrent operations on the same file by reviewing your code, or logging your file operations, or writing wrappers for f_open and f_close functions.
in IDF 2.0, I try setting _FS_LOCK 10, and with the same code, it still works without problem. Is there any more reason?in IDF 2.0 _FS_LOCK was set to 0, which is why you didn't get any errors reported.
Users browsing this forum: No registered users and 94 guests