fx_file变量是同一个,这相当于fatfs的文件句柄吧,都先关闭了的,不应该存在冲突。
跟踪了下,都是在fx open里面的这个位置返回错误的。
[C] 纯文本查看 复制代码 /* Check the bytes available in the cluster chain against the directory entry file size. */
if ((bytes_available < file_ptr -> fx_file_dir_entry.fx_dir_entry_file_size) ||
((cluster_count) && (contents < fat_last)))
{
/* File is corrupt, release media protection. */
FX_UNPROTECT
/* Return a corrupt file error status. */
return(FX_FILE_CORRUPT);
} |