Thank you for this response.
Sorry, but I can't do blank line. It's a bug of this forum ?
512 byte is coherent with my result. And setvbuff solve a part of my problem :).
-
MSCFileSystem has only two fonction available for FATFileSystem : disk_read and disk_write. The two function read and write one bloc(512 bytes) of the USB Key.
When I use this function directly, to write a large set of data, I can write 512 times 512 bytes(256kB), and after writing fail. The result of disk_write is alwais the same (successful).
May be the key has 256kB of buffer ?
How FAT Filesystem know when he can write ? MSCFileSystem has no function for this.
-
NB : opening the source code of mbed library is very important for user. It's still planed ?
Hi,
I write on usb mass storage with fwrite, and I have questions :
1.What is the buffer size of fwrite function ?
2.How write without buffer ? I want a POSIX write like function.
3.In the class MSCFileSystem, disk_sync isn't implemented. How request the key about the state of is buffer ? FATFileSystem has it a buffer ?
Thank you very much, and sorry for my bad english.
Steph.