kendryte-freertos-sdk
kendryte-freertos-sdk copied to clipboard
fwrite doesn't work with large files
Hi All,
I want to store files more than 10k but noticed that fwrite doesn't work properly , have you tested this with large files?
Thanks
Hi, I haven't worked with fwrite with this particular SDK, but I have faced this issue before, are you using a filesystem? Where are you trying to write to an SD Card?
If you are using a filesystem and using an sd card, you can try to write in chunks the size of the sector of the sd (usually 512bytes). Hope that works