RE: Dynamic C 9.25 FAT problems
<inecoiec-/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your answer Tom, but the problem is not the Dynamic C version. With 9.62 have the same problem. I think that the problem is the sector leng (512 bytes). I create a 64 bytes buffer... strcpy(buffer,"0123456789012345678901234567890123456789012345678901234567890123"; and write this with fat_Write sentence without problem after seek the last record with fat_Seek(&file, 0, SEEK_END); If write 1, 2, 3 times this buffer all works OK. I look this by excecute fat_Delete(particion,FAT_FILE,filename); // return 0 I can write and delete up 8 records OK (file of 512 bytes) OK but after write the record 9 (file of 576 bytes), when execute fat_Delete(particion,FAT_FILE,filename); I get the -22 (-EINVAL) error. Have you some idea over this problem ? Best regards and sorry for the lenght od this explanation