kendryte-freertos-sdk icon indicating copy to clipboard operation
kendryte-freertos-sdk copied to clipboard

fwrite doesn't work with large files

Open Moo2017 opened this issue 5 years ago • 1 comments

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

Moo2017 avatar Apr 09 '19 20:04 Moo2017

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

gerarq avatar Apr 24 '19 07:04 gerarq